On 20 Jul 2014, at 14:11, Andrea Faulds <[email protected]> wrote:
> double
Did I just say double? I meant float, of course. :)
The patch actually warns you if you try to do this now:
function foo(double $foo) {}
foo(1.0);
If you use one of the non-existent aliases (double), and pass the type that
alias is supposed to hint for (a float), the error message notes you might be
looking for the actual type hint (`float`).
The same for integer and boolean (only int and bool, respectively, are
permitted).
--
Andrea Faulds
http://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php