>> opinion) reason why type hinting should NOT be introduced. BTW accepting >> the string '1' where an (int) type hint is placed would be the next >> stupid design decision. >> > > Why Because type hinting is supposed to limit what kind of variable type is allowed for a parameter. When you magically convert you kill the whole idea of type hints and replace it with some magical function parameter auto type conversion, which would be another hard to understand magic feature of PHP. And the next problem would be what should happen in case of a magical conversion when the function wants an int in a parameter that is a reference. Suddenly calling a function does magically change variable types outside of the function => NIGHTMARE.
Stefan Esser -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php