Hi Marcus, > That said I would only agree to type hints if we make them respect existing > PHP conversion rules if "type hints" are supposed to convert data, then they are wrongly named. Then they should be better called "implicit typecasting". However "implicit typecasting" is not really usefull for PHP userland code and therefore noone will use it, because you even loose the benefit to detect wrong data type in a parameter, because nearly everything can be casted to a number. And therefore other applications like source code scanners or optimizers will not have the same benefit.
So in short I believe that people insist that "1" should be type casted to 1 because if it is implemented that way the whole feature makes no sense anymore and is useless and in the end is not implemented... Stefan Esser -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php