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 e817f3b commit 22d4f45Copy full SHA for 22d4f45
src/Analyser/NodeScopeResolver.php
@@ -5565,13 +5565,14 @@ private function processArgs(
5565
5566
$args = $callLike->getArgs();
5567
$hasAttributeGroups = (
5568
+ ($stmt instanceof FunctionLike && count($stmt->getAttrGroups()) > 0)
5569
+ || ((
5570
$stmt instanceof Node\Stmt\ClassLike
- || $stmt instanceof FunctionLike
5571
|| $stmt instanceof Node\Stmt\ClassConst
5572
|| $stmt instanceof Node\Stmt\Property
5573
|| $stmt instanceof Node\Stmt\EnumCase
5574
)
- && count($stmt->attrGroups) > 0; // @phpstan-ignore property.notFound
5575
+ && count($stmt->attrGroups) > 0));
5576
5577
$parameters = null;
5578
if ($parametersAcceptor !== null) {
0 commit comments