1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix suppression

This commit is contained in:
Matthew Brown 2020-06-04 09:55:32 -04:00 committed by GitHub
parent 08943ea409
commit c9ee691595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;