Lazare, > The patch of Anthony, clearly states that this is accepted: > > function foo ( int $bar = null ) { } > > And this is what I called an int|null.
Yup, it does. Because that's the current behavior with array and object casting. If you default it to null in the declaration, null is a valid value. If you don't, it's not... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php