Intellisense for late static binding

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

Intellisense for late static binding

Postby pk6610 » March 14th, 2014, 10:51 am

Hi!

I'm trying to set up Intellisense for factory methods like this:

Code: Select all
class foo
{
    /** @return static */
    public static function create()
    {
        return new static();
    }
}
class bar extends foo
{
    public $id;
}

bar::create()-> // I should see $id now but only create() pops up


Am I doing something wrong or is this feature not supported?
pk6610
 
Posts: 2
Joined: March 14th, 2014, 10:27 am

Re: Intellisense for late static binding

Postby Jakub Misek » March 14th, 2014, 11:43 am

Hi,

Currently (version 1.11) IntelliSense treats static:: as self::

We'll improve late static binding for sure in a future release.

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: Intellisense for late static binding

Postby pk6610 » March 14th, 2014, 12:18 pm

Thank you for fast response.

Jakub Misek wrote:We'll improve late static binding for sure in a future release.

I am looking forward to it!
pk6610
 
Posts: 2
Joined: March 14th, 2014, 10:27 am


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 124 guests

User Control Panel

Login

Who is online

In total there are 124 users online :: 0 registered, 0 hidden and 124 guests (based on users active over the past 5 minutes)
Most users ever online was 487 on April 27th, 2024, 10:08 am

Users browsing this forum: No registered users and 124 guests