Created
July 14, 2016 14:37
-
-
Save ThijsFeryn/1cf76dff1df2c5380f59c3e1b123f1ce to your computer and use it in GitHub Desktop.
The returned array cannot be converted into the desired string. A type error is thrown.
This file contains hidden or 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 | |
function double(int $argument):string { | |
return [$argument*2]; | |
} | |
var_dump(double(3)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment