|Class syntax validation problem - newbie question [message #1100019]
||Mon, 02 September 2013 14:40
| Glenn Schworak
Registered: February 2010
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:
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.
How to change the GLOBAL PHP default version
How to change a project's PHP version
Powered by FUDForum
. Page generated in 0.10630 seconds