title: PHP Fatal Error can't use function return value in write context
body: <p>I am working on a PHP project and doing the development on Windows and everything works perfectly fine. </p>
  
  <p>When I install the code onto a Linux box the page breaks and I get the following error:</p>
  
  <pre><code> PHP Fatal error:  Can't use function return value in write context
  </code></pre>
  
  <p>The line that this error is referring to is</p>
  
  <pre><code>if (!isset(parent::getPostArray()["searchRefOnly"]))
  </code></pre>
  
  <p>And all the <code>parent::getPostarray()</code> function does is return an array as follows:</p>
  
  <pre><code>protected function getPostArray()
          {
              return $this-&gt;postArray;
          }
  </code></pre>
  
  <p>The above code works perfectly fine on Windows, so why not on Linux? </p>