CS>>Just a thought: Allow default values to violate the type hint (maybe
CS>>only a default value of null).

Non-null defaults for class-typehinted variable is definitely bad. This 
means you code has to check somewhere if it's default or not - then why 
typehint it? If your method accepts non-objects - it should not be marked 
as "accepts only objects of this type".
-- 
Stanislav Malyshev, Zend Products Engineer   
[EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115

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

Reply via email to