We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2c87e commit e9071b4Copy full SHA for e9071b4
Stock/TombstoneNodeVisitor.php
@@ -168,15 +168,17 @@ private function getCurrentMethodName(): ?string
168
}
169
170
/**
171
- * @param Node\Arg[] $args
+ * @param Node\Arg[]|Node\VariadicPlaceholder[] $args
172
*
173
* @return list<string|null>
174
*/
175
private function extractArguments(array $args): array
176
{
177
$params = [];
178
foreach ($args as $arg) {
179
- if ($arg->value instanceof String_) {
+ if ($arg instanceof Node\VariadicPlaceholder) {
180
+ break; // Can't extract from ...$var arguments
181
+ } elseif ($arg->value instanceof String_) {
182
/** @psalm-suppress RedundantCastGivenDocblockType */
183
$params[] = (string) $arg->value->value;
184
} else {
0 commit comments