Community
Participate
Working Groups
Found on 2.2.1.v20100906 Have a code like this: <?php class AAA{ } $aaa = new AAA() When you Ctrl+Click the 'new' it brings you to the class declaration, the same as when you do this on 'AAA()'
I could not reproduce this bug on branch and head,when I Ctrl+Click the 'new' ,nothing happened!Maybe it has been fixed.
(In reply to comment #1) > I could not reproduce this bug on branch and head,when I Ctrl+Click the 'new' > ,nothing happened!Maybe it has been fixed. there is missing a ";" in the code snippet. if you add it then the problem occurs.
Created attachment 180310 [details] patch
fixed
the patch causes other bugs.
first I thought this bug should be fixed in the core model,but it will cause other bugs,so now I judge if the selected word is "new",if so it will return null in PHPHyperlinkDetector.detectHyperlinks. I think it is ok now,because new is keyword,it could not be class/function/field name.
Verified. Closing....