Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Late Static Bindings(Wrong eclipse code interpretation)
Late Static Bindings [message #550130] Thu, 29 July 2010 04:50 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: July 2010
Junior Member
I have a problem using late static bindings with pdt plugin (v2.1 and 2.2).

Expressions like
static::$var
are marked as syntax error, but are accepted by PHP 5.3

Is this a known bug and is there a workaround?
Re: Late Static Bindings [message #550143 is a reply to message #550130] Thu, 29 July 2010 05:38 Go to previous messageGo to next message
Marijn is currently offline Marijn
Messages: 19
Registered: July 2009
Junior Member
You need to set the PHP version for your project to PHP 5.3.
You can set the default for all projects somewhere in Window >
Preferences > PHP, and you can override it for each project in the
project settings.

Regards,

Marijn.

On 29-07-10 10:50, phpdevel@gmx.net wrote:
> I have a problem using late static bindings with pdt plugin (v2.1 and 2.2).
> Expressions like
> static::$var
> are marked as syntax error, but are accepted by PHP 5.3
>
> Is this a known bug and is there a workaround?
Re: Late Static Bindings [message #550144 is a reply to message #550130] Thu, 29 July 2010 05:38 Go to previous message
Marijn is currently offline Marijn
Messages: 19
Registered: July 2009
Junior Member
You need to set the PHP version for your project to PHP 5.3.
You can set the default for all projects somewhere in Window >
Preferences > PHP, and you can override it for each project in the
project settings.

Regards,

Marijn.

On 29-07-10 10:50, phpdevel@gmx.net wrote:
> I have a problem using late static bindings with pdt plugin (v2.1 and 2.2).
> Expressions like
> static::$var
> are marked as syntax error, but are accepted by PHP 5.3
>
> Is this a known bug and is there a workaround?
Previous Topic:PDT 2.2 - Open Declaration (F3)
Next Topic:Eclipse crashing with PHP files
Goto Forum:
  


Current Time: Wed Jul 30 07:08:56 EDT 2014

Powered by FUDForum. Page generated in 0.01802 seconds