X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FComponent.pm;h=b0bb7b5a58021c9fd82ecaf7d7851306d5f1e527;hb=fa7a60aac97d8a9501a2cdca54f519752c12731a;hp=fe0ef6fe3e347bf168dbb1561fe708f3657b1840;hpb=df960201c8d8c22edddedced4471c14606877145;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Component.pm b/lib/Catalyst/Component.pm index fe0ef6f..b0bb7b5 100644 --- a/lib/Catalyst/Component.pm +++ b/lib/Catalyst/Component.pm @@ -84,7 +84,7 @@ sub BUILDARGS { } elsif (Class::MOP::is_class_loaded($_[0]) && $_[0]->isa('Catalyst') && ref($_[1]) eq 'HASH') { $args = $_[1]; - } elsif ($_[0] == $_[1]) { + } elsif ($_[0] eq $_[1]) { $args = $_[1]; } else { $args = +{ @_ };