Created
July 14, 2016 14:35
-
-
Save ThijsFeryn/6cce1f0471ce50edb2c3d1c069b2b6ab to your computer and use it in GitHub Desktop.
A type error is thrown because an array cannot be turned into an integer
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):int { | |
return $argument*2; | |
} | |
var_dump(double([])); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment