On Sun, 2008-01-06 at 01:11 +0200, Vlad Bosinceanu wrote:
> Also,
> 
> function foo(SomeClass $obj) would error out if passed something other 
> than a SomeClass instance, while
> function foo(int $number) would just cast $number to int.
> 
> Not really intuitive and not really consistent.

My patch does not cast. I think this is pointless to cast type hints, as type 
juggling will be performed anyway when the function arguments are echoed, 
passed to other functions, etc.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to