diff --git a/src/analyzer/Stock/TombstoneNodeVisitor.php b/src/analyzer/Stock/TombstoneNodeVisitor.php index de30b43..21c3690 100644 --- a/src/analyzer/Stock/TombstoneNodeVisitor.php +++ b/src/analyzer/Stock/TombstoneNodeVisitor.php @@ -100,6 +100,7 @@ public function leaveNode(Node $node) private function isTombstoneFunction(FuncCall $node): bool { + /** @psalm-suppress RedundantCondition */ if (isset($node->name->parts)) { $nameParts = $node->name->parts; @@ -124,6 +125,7 @@ private function extractArguments(FuncCall $node): array $params = []; foreach ($node->args as $arg) { if ($arg->value instanceof String_) { + /** @psalm-suppress RedundantCastGivenDocblockType */ $params[] = (string) $arg->value->value; } else { $params[] = null;