-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Description
When writing
class A {
/**
* @throws \LogicException
*
* @return void
**/
public method foo()
{
throw \LogicException();
}
}
class B extends A {
/**
* @return void
**/
public method foo()
{
return;
}
}
Phpstan is now merging the phpdoc and think that B::foo is returning an exception which is not true.
This has multiple bad effects on https://packagist.org/packages/pepakriz/phpstan-exception-rules
since it now report false positive Unused exception or You didn't try/catch a possible exception.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels