title: Can't catch symfony FatalErrorException
body: <p>I have code like this:</p>
  
  <pre><code>try {
      $var = $object-&gt;getCollection()-&gt;first()-&gt;getItem()-&gt;getName();
  } catch(\Exception $e) {
      $var = null;
  }
  </code></pre>
  
  <p>Of course i have communicative variable and method names. This is just demonstration.</p>
  
  <p>So if my collection is empty the Collection::first() will return false. Then the getItem call will throw a Symfony\Component\Debug\Exception\FatalErrorException which won't be catched by the code above.</p>
  
  <p>My question is that how can i catch this exception? I have long chains like this with many getters that can return null. So i prefer this way rather than checking every value for null.</p>