Closed
Description
Hi!
Pretty basic example
<?php
$a = null;
$a->getId();
This in PHP7 will throw an \Error
, which implements the \Throwable
interface. However, on https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Application.php#L118 we are only catching \Exception
to set the status code to 1. As a result, those especial exceptions in the console end up with an 0 exit status code, when it should be 1 as with all other normal exceptions. Thanks! Can work on a PR if needed :)