code: protected function makeFatalErrorException()
  	{
  		$error = error_get_last();
  
  		if ($error !== null) {
  			return new FatalErrorException($error['message'],
  				$error['type'], 0, $error['file'], $error['line']);
  		}
  
  		return null;
  	}
docs: Create a FatalErrorException out of the information stored on the last
  PHP error.
  
  @return \Symfony\Component\Debug\Exception\FatalErrorException|null