d on :
function foo(int $a) {
var_dump($a);
}
foo(2147483647 + 10); // think about 32 vs 64 bit ints
portable code fail. a generic numeric type hint would've probably been better.
var_dump($a);
}
foo(2147483647 + 10); // think about 32 vs 64 bit ints
portable code fail. a generic numeric type hint would've probably been better.
beginnerpc.com on : PingBack
Do You PHP ??? on : [PHP]Scalar Type Hints are Here!