Skip to content
Snippets Groups Projects
  • Jaime Pérez's avatar
    bugfix: Exception handler compatible with PHP 7. · b2bfd47d
    Jaime Pérez authored
    PHP 7 changed the way it handles internal errors. Now, Exception objects inherit from the Throwable interface, as well as the new Error objects. Internal functions throw Error objects now instead of raising an error, so the exception handler would need to handle them as well. Therefore, the exception handler is no longer guaranteed to receive an Exception object. We need now to discern whether the parameter is an exception (and continue our business as usual), or an Error (in case such thing exists, only PHP 7), and in this last case parse it and let the error handler do its stuff.
    
    This should resolve #330.
    b2bfd47d
Code owners
Assign users and groups as approvers for specific file changes. Learn more.