Toby Inkster avatar Toby Inkster committed 0689cbb

fix for rt#80121

Comments (0)

Files changed (3)

lib/Scalar/Does.pm

 	# curry (kinda)
 	return sub { overloads(shift, $thing) } if @_==1;
 	
+	return unless defined $thing;
 	goto \&overload::Method;
 }
 

meta/makefile.pret

 	readme_from       m`Scalar::Does`;
 	requires          p`namespace::clean 0.19`;
 	requires          p`IO::Detect 0.001`;
-	requires          p`namespace::clean 0.19`;
 	requires          p`Scalar::Util 1.23`;
-	requires          p`Carp`;
 	requires          p`Sub::Exporter`;
+	test_requires     p`Test::NoWarnings 0`;
 	test_requires     p`Test::More 0.61`.
 
 require Scalar::Does;
 Scalar::Does::does(undef, 'ARRAY');
 
-done_testing;
+done_testing(1);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.