2
Quote:
wishcraft wrote:
When i got it up and running I got the following error: Error : ParseError: syntax error, unexpected 'new' (T_NEW)
The most likely cause is a line like this:
$variable =& new SomeObject();
The problem is the
& by reference operator.
Objects are always references now, and PHP7 complains if you use the by reference assignments with them. But when you add
new in one of those assignments, it becomes a parse error -- it can't use it in that context.
Finding and fixing any occurrences like that example should fix it.