Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php interface TestExceptionInterface extends Throwable { } class TestException extends Exception implements TestExceptionInterface { } class Example { /** * @throws Throwable */ function __construct() { self::test(); } /** * @throws TestExceptionInterface */ static function test(): void { throw new TestException(); } } new Example();
Snippet created on March 16 2023 at 11:04 UTC
Settings
Get link