title: Why does PHP not complain when I treat a null value as an array like this?
body: <p>In PHP, I have <a href="http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting" rel="noreferrer"><code>error_reporting</code></a> set to report everything including notices.</p>
  
  <p>Why does the following not throw any notices, errors or anything else?</p>
  
  <pre><code>$myarray = null;
  $myvalue = $myarray['banana'];
  </code></pre>
  
  <p>Troubleshooting steps:</p>
  
  <pre><code>$myarray = array();
  $myvalue = $myarray['banana'];
  // throws a notice, as expected ✔
  
  $myarray = (array)null;
  $myvalue = $myarray['banana'];
  // throws a notice, as expected ✔
  
  $myarray = null;
  $myvalue = $myarray['banana'];
  // no notice or warning thrown, $myvalue is now NULL. ✘ Why?
  </code></pre>
  
  <p>It's possible it's a bug in PHP, or I'm just not understanding something about how this works.</p>