Array typehinting with Type[]

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

Array typehinting with Type[]

Postby CFI » January 4th, 2013, 2:29 pm

Hi,

it would be great if you could support the array notation Type[] to work with intellisense. I have for example the following class:

Code: Select all
/**
 * Base class for XML deserialization.
 *
 * @property   ServerConfiguration[]   $ServerConfigurationArray   The Server Configuration.
 * 
 * @package       Xml.Model
 */
class NtpConfiguration extends XmlAppModel
{
}

and when using "NtpConfiguration->ServerConfigurationArray[1]->Name" I would like PHP tools to know that $Name is a defined property of "ServerConfiguration" as it does when using it without the [].

regards
CFI
 
Posts: 66
Joined: December 13th, 2012, 1:29 pm

Re: Array typehinting with Type[]

Postby Jakub Misek » January 4th, 2013, 4:41 pm

Hi,

This feature is already supported in upcoming version. I'll keep you informed about public availability.

Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: Array typehinting with Type[]

Postby Jakub Misek » January 4th, 2013, 5:08 pm

Hi,

We've published latest package into our Beta Releases, you are free to download&try.

Thanks!
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 297 on March 29th, 2024, 7:06 am

Users browsing this forum: No registered users and 46 guests