Skip to content

Commit 22d4f45

Browse files
committed
Update NodeScopeResolver.php
1 parent e817f3b commit 22d4f45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5565,13 +5565,14 @@ private function processArgs(
55655565

55665566
$args = $callLike->getArgs();
55675567
$hasAttributeGroups = (
5568+
($stmt instanceof FunctionLike && count($stmt->getAttrGroups()) > 0)
5569+
|| ((
55685570
$stmt instanceof Node\Stmt\ClassLike
5569-
|| $stmt instanceof FunctionLike
55705571
|| $stmt instanceof Node\Stmt\ClassConst
55715572
|| $stmt instanceof Node\Stmt\Property
55725573
|| $stmt instanceof Node\Stmt\EnumCase
55735574
)
5574-
&& count($stmt->attrGroups) > 0; // @phpstan-ignore property.notFound
5575+
&& count($stmt->attrGroups) > 0));
55755576

55765577
$parameters = null;
55775578
if ($parametersAcceptor !== null) {

0 commit comments

Comments
 (0)