Created
April 20, 2012 08:47
-
-
Save vladimir-vg/2427181 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$f = function (string $a) { return $a; }; | |
echo $f('string'); | |
// PHP Catchable fatal error: | |
// Argument 1 passed to {closure}() must be an instance of string, string given, called in php shell code on line 1 and defined in php shell code on line 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment