We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perl -MPath::Class -MMock::Quick -e'my $x = qobj(foo => sub { print "My file is $_[1]" }); $x->foo( file(".") );' Argument "." isn't numeric in numeric eq (==) at /Users/pjlsergeant/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Mock/Quick/Util.pm line 44.
https://github.com/exodist/Mock-Quick/blob/master/lib/Mock/Quick/Util.pm#L44
The text was updated successfully, but these errors were encountered:
There is a bug in your code, you should use qmeth instead of sub to add a custom sub to the object:
perl -MPath::Class -MMock::Quick -e'my $x = qobj(foo => qmeth { print "My file is $_[1]" }); $x->foo( file(".") );'
that said, the warning still occurs and needs to be fixed.
Sorry, something went wrong.
a64ecf5
No branches or pull requests
https://github.com/exodist/Mock-Quick/blob/master/lib/Mock/Quick/Util.pm#L44
The text was updated successfully, but these errors were encountered: