Class syntax validation problem - newbie question [message #1100019] |
Mon, 02 September 2013 10:40  |
Eclipse User |
|
|
|
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!
|
|
|
|
Powered by
FUDForum. Page generated in 0.24537 seconds