Skip to main content


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 08:50 Go to next message
No real name is currently offline No real nameFriend
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 09:38 Go to previous messageGo to next message
Marijn is currently offline MarijnFriend
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 09:38 Go to previous message
Marijn is currently offline MarijnFriend
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: Tue Mar 19 07:42:03 GMT 2024

Powered by FUDForum. Page generated in 0.01706 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top