Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Syntax Error: unexpected new
Syntax Error: unexpected new [message #778772] Fri, 13 January 2012 19:58
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 2
Registered: September 2011
Junior Member
Hi guys,

Trying to create a new Object within its own class but PDT/Eclipse won't let me: says it's an "unexpected new", as in the "new" keyword for creating a new object( in-fact, I can't even create any object at all). The object is private, static and final. Is that a problem? I'm coming from Java, so it could be I messed up when limiting the property. But when I remove those restrictions, and just create $object = new Object(); I get another error saying it was expecting a function.


Suggestions?


Thanks in advance!

[Updated on: Fri, 13 January 2012 20:00]

Report message to a moderator

Previous Topic:Error! Create remote project
Next Topic:Is there a clean upgrade method from Galileo PHP?
Goto Forum:
  


Current Time: Thu Apr 25 11:01:04 GMT 2024

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

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

Back to the top