Add PHPDoc "Go to definition" support for typed arrays

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Add PHPDoc "Go to definition" support for typed arrays

Postby uwe » November 29th, 2016, 2:31 pm

Example code:

Code: Select all
/*
* @property ShopArticleVariantOptionModel[] $Options
*/


In the above code, when clicking on "ShopArticleVariantOptionModel" and selecting "Go to definition" (F12) it cannot be resolved.

My expectation would be that it jumps to the definition of my "ShopArticleVariantOptionModel" class.

In contrast, in

Code: Select all
/*
* @property ShopArticleVariantOptionModel $Option
*/


(i.e. no array, just a custom type), the "Go to definition" does work.

My suggestion:

Please allow "Go to definition" for typed arrays to jump to the class type.
uwe
 
Posts: 21
Joined: October 10th, 2016, 8:39 am

Re: Add PHPDoc "Go to definition" support for typed arrays

Postby Jakub Misek » December 2nd, 2016, 9:04 am

Hi,

Thanks for the suggestion. We'll add this feature into a future update.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 46 guests

cron

User Control Panel

Login

Who is online

In total there are 46 users online :: 0 registered, 0 hidden and 46 guests (based on users active over the past 5 minutes)
Most users ever online was 399 on April 19th, 2024, 11:49 pm

Users browsing this forum: No registered users and 46 guests