Skip to content

[transform] tidy up array dim fetch to method call rector#7694

Merged
TomasVotruba merged 2 commits intomainfrom
tv-assign-tidy
Dec 1, 2025
Merged

[transform] tidy up array dim fetch to method call rector#7694
TomasVotruba merged 2 commits intomainfrom
tv-assign-tidy

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

No description provided.

}

return $this->getMethodCall($node->var, 'set', $node->expr)
?? NodeVisitor::DONT_TRAVERSE_CHILDREN;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DONT_TRAVERSE_CHILDREN should be used only in edge-cases, as it works with internal php-parser traversing.
Here the IS_BEING_ASSIGNED is more clear 👍

@TomasVotruba TomasVotruba enabled auto-merge (squash) December 1, 2025 20:19
@TomasVotruba TomasVotruba merged commit 31adca8 into main Dec 1, 2025
54 of 55 checks passed
@TomasVotruba TomasVotruba deleted the tv-assign-tidy branch December 1, 2025 20:20
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 3, 2026

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant