mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix suppression
This commit is contained in:
parent
08943ea409
commit
c9ee691595
@ -283,7 +283,7 @@ class TryAnalyzer
|
||||
// discard all clauses because crazy stuff may have happened in try block
|
||||
$catch_context->clauses = [];
|
||||
|
||||
/** @psalm-suppress RedundantCondition due to PhpParser nullability */
|
||||
/** @psalm-suppress RedundantConditionGivenDocblockType */
|
||||
if ($catch->var && is_string($catch->var->name)) {
|
||||
$catch_var_id = '$' . $catch->var->name;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user