Created
September 3, 2015 11:14
-
-
Save nicolas-grekas/a24a6b74091206302e05 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 | |
$foo = function (): foo { | |
return new foo(); | |
}; | |
$foo instanceof foo; // => true | |
$foo->toto = 123; // $foo() is evaluated and is swapped to its return value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment