Its demonstrated through following usecases;
Suppose, following is my php file-
Don’t get into the technicalities of the code, I am still a novice in PHP development, though this is one of the files, I used to logout of a session, in my first and the last project ;)
Anyways, clicking on session_start, session_unregister (takes me to session.php) and sleep (takes you to standard.php).
“The session.php and standard.php files are our signature files, which contains just the function, class or variable signatures with appropriate phpdoc“
Following snap, just shows the result of above clicking-
This actually looks like a bug to me-
I think when I mouseOver require, then I should be taken to file where its defined, and when I mouseOver the URL inside the parantheses, then I should be navigated to that file. Right now, what happens is the following, I am taken to only one file, as it detects only 1 hyperlink, not 2–
If in the above image, you click on $connect in line #4, then you are taken to line #2, where its created and initialized.
As you can see when I mouseOver that function, it shows a tooltip, which was not in other cases, strange! Clicking it takes you to the desired script.
The above case is inconsistent, have a look at this-
When, I mouseOver showMessage(), nothing happens, also highlighting is different too, another bug! Hey, probably you might have made a mistake, check this out-
Now, It will work perfectly, as this is how the editor accepts the attributes, though no semantic errors are detected, this is strange! Is this a bug? OR a feature not yet implemented?
Stay Tuned for more updates…
Author- Varun Nischal
Reviewed by Petr Pisl, Tech Lead, PHP Support