Page 1 of 1

Array typehinting with Type[]

PostPosted: January 4th, 2013, 2:29 pm
by CFI
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

Re: Array typehinting with Type[]

PostPosted: January 4th, 2013, 4:41 pm
by Jakub Misek
Hi,

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

Thanks!

Re: Array typehinting with Type[]

PostPosted: January 4th, 2013, 5:08 pm
by Jakub Misek
Hi,

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

Thanks!