I got this error when debugging my code:
PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR in order.php on line 72
Here is a snippet of the code (starting on line 72):
$purchaseOrder = new PurchaseOrderFactory->instance();
$arrOrderDetails = $purchaseOrder->load($customerName);
Unfortunately, it is not possible to call a method on an object just created with
newbefore PHP 5.4.In PHP 5.4 and later, the following can be used:
Note the mandatory pair of parenthesis.
In previous versions, you have to call the method on a variable: