1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

fix missing case for displaying varId

This commit is contained in:
orklah 2021-12-03 23:46:12 +01:00
parent 826b26bf6b
commit 2612f5a5f1

View File

@ -216,6 +216,10 @@ class ExpressionIdentifier
}
}
if ($stmt instanceof PhpParser\Node\Expr\ConstFetch) {
return implode('\\', $stmt->name->parts);
}
return self::getVarId($stmt, $this_class_name, $source);
}
}