title: PHP Parse error: syntax error, unexpected T_OBJECT_OPERATOR
body: <p>I got this error when debugging my code:</p>
  
  <blockquote>
    <p>PHP Parse error:  syntax error, unexpected T_OBJECT_OPERATOR in order.php on line 72</p>
  </blockquote>
  
  <p>Here is a snippet of the code (starting on line 72):</p>
  
  <pre><code>$purchaseOrder = new PurchaseOrderFactory-&gt;instance();
  $arrOrderDetails = $purchaseOrder-&gt;load($customerName);
  </code></pre>