Skip to content

Commit

Permalink
Fix name (#4788)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 14, 2023
1 parent 90b832d commit 98b203a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ private function resolveClassName(Class_ | Interface_ | Trait_| Enum_ $classLike
}

/**
* @param callable(Node $node, MutatingScope $scope): void $nodeCallback
* @param callable(Node $trait, MutatingScope $scope): void $nodeCallback
*/
private function processTrait(Trait_ $node, MutatingScope $mutatingScope, callable $nodeCallback): void
private function processTrait(Trait_ $trait, MutatingScope $mutatingScope, callable $nodeCallback): void
{
$traitName = $this->resolveClassName($node);
$traitName = $this->resolveClassName($trait);

$traitClassReflection = $this->reflectionProvider->getClass($traitName);

Expand All @@ -408,8 +408,8 @@ private function processTrait(Trait_ $node, MutatingScope $mutatingScope, callab

$this->privatesAccessor->setPrivateProperty($traitScope, self::CONTEXT, $traitContext);

$node->setAttribute(AttributeKey::SCOPE, $traitScope);
$this->nodeScopeResolver->processNodes($node->stmts, $traitScope, $nodeCallback);
$this->decorateTraitAttrGroups($node, $traitScope);
$trait->setAttribute(AttributeKey::SCOPE, $traitScope);
$this->nodeScopeResolver->processNodes($trait->stmts, $traitScope, $nodeCallback);
$this->decorateTraitAttrGroups($trait, $traitScope);
}
}

0 comments on commit 98b203a

Please sign in to comment.