Skip to content

Commit

Permalink
use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
stevan committed Dec 20, 2015
1 parent b764207 commit cff6730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Moxie/lib/Moxie.pm
Expand Up @@ -35,7 +35,7 @@ sub mop::object::DOES ($self, $role) {
# test just the local (and composed) roles first ...
return 1 if $meta->does_role( $role );
# then check the inheritance hierarchy next ...
return 1 if scalar grep { mop::class->new( name => $_ )->does_role( $role ) } $meta->mro;
return 1 if scalar grep { mop::class->new( name => $_ )->does_role( $role ) } @{ $meta->mro };
return 0;
}

Expand Down

0 comments on commit cff6730

Please sign in to comment.