function allowingNULL(object $val = NULL) function preventNULL(object $val)
I like this idea even though it's abusing the default value syntax.
What's a bit weird is something like
function foo(object $obj = NULL, $mandatoryparameter) { ... }
where people will wonder why there is a default value even though they can't omit the parameter really. But personally I could live with that.
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php