Skip to content

Commit e9071b4

Browse files
committed
Fix psalm errors
1 parent 2f2c87e commit e9071b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Stock/TombstoneNodeVisitor.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,17 @@ private function getCurrentMethodName(): ?string
168168
}
169169

170170
/**
171-
* @param Node\Arg[] $args
171+
* @param Node\Arg[]|Node\VariadicPlaceholder[] $args
172172
*
173173
* @return list<string|null>
174174
*/
175175
private function extractArguments(array $args): array
176176
{
177177
$params = [];
178178
foreach ($args as $arg) {
179-
if ($arg->value instanceof String_) {
179+
if ($arg instanceof Node\VariadicPlaceholder) {
180+
break; // Can't extract from ...$var arguments
181+
} elseif ($arg->value instanceof String_) {
180182
/** @psalm-suppress RedundantCastGivenDocblockType */
181183
$params[] = (string) $arg->value->value;
182184
} else {

0 commit comments

Comments
 (0)