You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f8c5ebc
Browse filesBrowse the repository at this point in the historyBrowse files
Avoid dead catch false positive for inconsistently overridden trait methods
A trait's try/catch can be dead in the context of one class using the
trait and alive in another, e.g. when it depends on whether an abstract
method gets overridden without throwing. Apply the same
ConstantConditionInTraitHelper mechanism already used for isset/empty/??
to CatchWithUnthrownExceptionRule, so disagreeing verdicts across classes
using the trait suppress the error instead of reporting it.
Closesphpstan/phpstan#10315
0 commit comments