Subject: | enum warning |
Date: | Thu, 9 Jan 2014 12:56:47 +0000 |
To: | bug-HTML-FormHandler [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
With Moose-2.1200, HTML-FormHandler's test suite generates a warning:
Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref. at /opt/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux-ld/Moose/Util/TypeConstraints.pm line 445.
Moose::Util::TypeConstraints::enum("RGBColors", "red", "green", "blue") called at t/validation/constraints.t line 37
The line in question is
enum 'RGBColors' => qw(red green blue);
and should now be
enum 'RGBColors' => [qw(red green blue)];
-zefram