Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun May 11 23:35:40 EDT 2025

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

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

Back to the top