On 12/02/2015 13:39, Pavel Kouřil wrote:
Well, about "number" type hint. How this would work, in combination with strict types?function bar(float $f) { return $f * 1.23; } function foo(number $x) { return bar($x); } foo(1); From my understanding, it wouldn't?
This particular example would break with strict types as 1 is not a float, but then it's the fault of whoever wrote the function foo, that accepts a "number" and uses it to call one only accepting floats.
Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
