Hi,

This is a clear bug, please report it at bugs.php.net
Done: http://bugs.php.net/44653

Since "use SomeName" does the same as "use ::SomeName" dropping the warning also be an option.

And if we split of "use" into "use namespace" and "use class" we could resolve ambiguous calls where a namespace and a class have the same name in a way easy to understand. This would invalidate the
reason for the warning IMO.
Another benefit is that this way we know whether a unqualified call should resolve to a static method or a
namespaced function and can save lookups at runtime.
Furthermore if traits were added to PHP we can simply use "use trait TraitName". So there is no room
for confusion because of keyword reuse.

I think splitting of "use" was proposed on this list before but was never discussed.


Regards,
Julian Reich

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

Reply via email to