From: Yuval Kogman Date: Sun, 13 Apr 2008 19:57:33 +0000 (+0000) Subject: remove the name => undef restriction on find_or_create_{isa,does}_type_constraint X-Git-Tag: 0_55~225 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5e2ada84ac26503f3e29e3a0daff7ed21f588858;p=gitmo%2FMoose.git remove the name => undef restriction on find_or_create_{isa,does}_type_constraint --- diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index 72d68fe..79ad4f9 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -223,12 +223,12 @@ sub find_or_create_type_constraint ($;$) { sub find_or_create_isa_type_constraint ($) { my $type_constraint_name = shift; - find_or_parse_type_constraint($type_constraint_name) || create_class_type_constraint($type_constraint_name, { name => undef }) + find_or_parse_type_constraint($type_constraint_name) || create_class_type_constraint($type_constraint_name) } sub find_or_create_does_type_constraint ($) { my $type_constraint_name = shift; - find_or_parse_type_constraint($type_constraint_name) || create_role_type_constraint($type_constraint_name, { name => undef }) + find_or_parse_type_constraint($type_constraint_name) || create_role_type_constraint($type_constraint_name) } sub find_or_parse_type_constraint ($) {