Permalink
Browse files

Merge remote branch 'autarch/master'

* autarch/master:
  Fix use of subtype to avoid warnings from next Moose

Conflicts:
	Changes
  • Loading branch information...
2 parents 4c484b8 + 3bdf7f8 commit bed94591665e58b505581c896ad6dc57046897df @rafl committed Jul 19, 2010
Showing with 3 additions and 1 deletion.
  1. +2 −0 Changes
  2. +1 −1 lib/MooseX/Method/Signatures/Meta/Method.pm
View
@@ -1,5 +1,7 @@
Version history for MooseX::Method::Signatures
+ * Updated to avoid warnings from Moose 1.09 (Dave Rolsky).
+
0.34 Tue, 08 Jun 2010 14:00:00 -0300
* Provides a version of reify that replaces the original version and
now finally CatalystX::Declare and MooseX::MultiMethods work.
@@ -231,7 +231,7 @@ sub _param_to_spec {
if ($param->has_constraints) {
my $cb = join ' && ', map { "sub {${_}}->(\\\@_)" } $param->constraints;
my $code = eval "sub {${cb}}";
- $tc = subtype($tc, $code);
+ $tc = subtype({ as => $tc, where => $code });
}
my %spec;

0 comments on commit bed9459

Please sign in to comment.