Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Class syntax validation problem - newbie question
Class syntax validation problem - newbie question [message #1100019] Mon, 02 September 2013 10:40
Glenn Schworak is currently offline Glenn Schworak
Messages: 10
Registered: February 2010
Junior Member
Sorry, I am sure this is a newbie question. I have just started using Eclipse and know very little about where all the settings are hiding.

Here is the problem. I am running PHP 5.3 and I just created my first project in Eclipse. I have been using gedit up to this point.

Anyway, I left the validation setting at DEFAULT when creating the project and I think it is validating wrong.

This is valid code:
$MyClass::RETURN_TYPE_ARRAY

But the validator is barking about the double colon notation.

I think the default may be PHP 4 but I don't know how to switch the default (globally).

When I deleted the project and put it back forcing PHP 5.3 validation, the project validated correctly. I would rather use a global setting so when I upgrade to PHP 5.4 or higher I don't have to drop and re-add each project or manually switch each project (which I can't figure out either).

Any help would be greatly appreciated.



Summary:
How to change the GLOBAL PHP default version
How to change a project's PHP version



THANKS!
Previous Topic:Remote debugging over a VPN
Next Topic:eclipse-tomcat
Goto Forum:
  


Current Time: Mon Oct 07 06:21:14 EDT 2013

Powered by FUDForum. Page generated in 0.02063 seconds