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
sasezaki
changed the title
ContextRequireExceptionKeyRule should support without capturing
ContextRequireExceptionKeyRule should support non-capturing catchesNov 10, 2023
Also see refs. phpstan/phpstan#8663 ( Catching exception without capturing on PHP 7.4 is not allowed )
https://wiki.php.net/rfc/non-capturing_catches
Currently, would not be detected by ContextRequireExceptionKeyRule below case.
Because, ContextRequireExceptionKeyRule does detects with
findCurrentScopeThrowableVariable
.The text was updated successfully, but these errors were encountered: