Open Xerkus opened 5 years ago
\Exception and \Throwable are not equal and must not be swapped. \Throwable includes php errors, some of which are not really recoverable.
\Exception
\Throwable
On top of that it actually breaks code in some instances:
$exception = $this->prophesize(NotFoundExceptionInterface::class) - ->willExtend(Exception::class) + ->willExtend(Throwable::class) ->reveal();
This repository has been closed and moved to laminas/laminas-coding-standard; a new issue has been opened at https://github.com/laminas/laminas-coding-standard/issues/5.
\Exception
and\Throwable
are not equal and must not be swapped.\Throwable
includes php errors, some of which are not really recoverable.On top of that it actually breaks code in some instances: