Skip to content

Commit

Permalink
fixup! add phpunit to sets
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 13, 2023
1 parent c68650d commit f4325ee
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ public function __construct(
) {
}

private function processInsideArrayDimFetch(ArrayDimFetch $arrayDimFetch): void
{
if ($arrayDimFetch->var instanceof PropertyFetch || $arrayDimFetch->var instanceof StaticPropertyFetch) {
$arrayDimFetch->var->setAttribute(AttributeKey::INSIDE_ARRAY_DIM_FETCH, true);
}
}

public function enterNode(Node $node): ?Node
{
if ($node instanceof For_ || $node instanceof Foreach_ || $node instanceof While_ || $node instanceof Do_) {
Expand Down Expand Up @@ -95,6 +88,13 @@ public function enterNode(Node $node): ?Node
return null;
}

private function processInsideArrayDimFetch(ArrayDimFetch $arrayDimFetch): void
{
if ($arrayDimFetch->var instanceof PropertyFetch || $arrayDimFetch->var instanceof StaticPropertyFetch) {
$arrayDimFetch->var->setAttribute(AttributeKey::INSIDE_ARRAY_DIM_FETCH, true);
}
}

private function processContextInClass(Node $node): void
{
if ($node instanceof Class_) {
Expand Down

0 comments on commit f4325ee

Please sign in to comment.