Modify the Symfony sfException class to catch errors of type throwable
|Target version:||Release 2.5.0|
|Google Code Legacy ID:||Tested version:|
This commit in the community maintained Symfony 1 should be mirrored into our vendor/symfony directory:
In PHP >= 7.0.0 exceptions have changed so that class Throwable is implemented by both Exception and now Error.
If we leave this code as-is, we will miss catching any Error type exceptions. Errors can now be thrown by PHP fatal errors, whereas Exceptions will be thrown by user code (AtoM).