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 76c43b4 commit 5308865Copy full SHA for 5308865
src/PhpDoc/PhpDocNodeResolver.php
@@ -426,12 +426,8 @@ public function resolveParamImmediatelyInvokedCallable(PhpDocNode $phpDocNode):
426
public function resolveParamPureUnlessCallableIsImpure(PhpDocNode $phpDocNode): array
427
{
428
$parameters = [];
429
- // TODO: implement phpstan/phpdoc-parser
430
- foreach ($phpDocNode->getTagsByName('@pure-unless-callable-impure') as $tag) {
431
- $value = preg_split('/\s/u', (string)$tag->value)[0] ?? null;
432
- if ($value !== null && str_starts_with($value, '$')) {
433
- $parameters[substr($value, 1)] = true;
434
- }
+ foreach ($phpDocNode->getPureUnlessCallableIsImpureTagValues() as $tag) {
+ $parameters[$tag->parameterName] = true;
435
}
436
437
return $parameters;
0 commit comments