Closed
Description
There seem to be false positives with exceptions declared on interface methods that are not being used in the method implementation. This seems to be due to merging phpDoc since PHPStan 0.12.24 (phpstan/phpstan-src#196). Happens both in 0.10.1 and 0.11.0.
interface Foo {
/**
* @throws SomeException
*/
function bar(): void;
}
class SomeFoo implements Foo {
public function bar(): void
{
// no throw here -> causes Unused @throws
}
}
```
Metadata
Metadata
Assignees
Labels
No labels