Re: [PHP-DEV] type hint semantics; disagreement between phpt and manual

2008-10-16 Thread Lukas Kahwe Smith
On 07.10.2008, at 21:59, Nathan Nobbe wrote: hi all, we are encountering an error in our code due to type hint semantics. php is allowing NULL values through a type hint for a class, however, if i read the manual, NULL, should only be allowed, if and only if, null is given as the

[PHP-DEV] type hint semantics; disagreement between phpt and manual

2008-10-07 Thread Nathan Nobbe
hi all, we are encountering an error in our code due to type hint semantics. php is allowing NULL values through a type hint for a class, however, if i read the manual, NULL, should only be allowed, if and only if, null is given as the default value for the formal parameter that is type-hinted.