Community
Participate
Working Groups
The following code is not valid according the document at http://www.php.net/manual/en/language.namespaces.rules.php. <?php namespace qq; class Httpd_document extends DOMDocument{ } The document says "To reference any global class in the global namespace, its fully qualified name new \C() must be used. " Now the CA, tool tip and go to source are all working for DOMDocument, but they should work for the \DOMDocument only.
Created attachment 180573 [details] patch
nice! works for tool tip and go to source.but what about the CA?
sample code <?php namespace ns; $e = new Exception(); $e->| // active the CA, there are no proposals displayed $e = new \Exception(); $e->| // active the CA, you will get some functions displayed. ?> So I think it works for CA too.
Created attachment 182454 [details] patch
Created attachment 182455 [details] unit test patch
Created attachment 182456 [details] unit test patch 2 add more tests for selecting use statement
change status
Verified.