Skip to content

Instantly share code, notes, and snippets.

@vladimir-vg
Created April 20, 2012 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladimir-vg/2427181 to your computer and use it in GitHub Desktop.
Save vladimir-vg/2427181 to your computer and use it in GitHub Desktop.
<?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