Created
November 1, 2015 20:22
-
-
Save kingpabel/e8007d1bb002458116a5 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 | |
//right way | |
function foo(): array { | |
return []; | |
} | |
var_dump(foo()); | |
//wrong way | |
function foo(): array { | |
return 'a'; | |
} | |
var_dump(foo()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment