zend-coding-standard
zend-coding-standard copied to clipboard
[v2] Must not replace Exception with Throwable
\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:
$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.