Skip to content

[dx] warn about deprecated beforeTraverse() method once FileNode is ready#7768

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-warn-about-before-traverse
Dec 22, 2025
Merged

[dx] warn about deprecated beforeTraverse() method once FileNode is ready#7768
TomasVotruba merged 1 commit into
mainfrom
tv-warn-about-before-traverse

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Dec 22, 2025

The Rector::beforeTraverse() is now marked as soft @final, but not everyone uses PHPStan to check their custom rules and has this check enabled.

This is a simple feedback on Rector's run to prepare about depreaction of this method in safe way everyone notices. That way we prevent WTF when this method will actually become final and removed in the future.

Related PR #7728

@TomasVotruba TomasVotruba force-pushed the tv-warn-about-before-traverse branch from 0cd995e to 08735ab Compare December 22, 2025 13:20
@TomasVotruba TomasVotruba force-pushed the tv-warn-about-before-traverse branch from 8bd045f to aec723a Compare December 22, 2025 13:23
@TomasVotruba TomasVotruba merged commit 083c728 into main Dec 22, 2025
58 checks passed
@TomasVotruba TomasVotruba deleted the tv-warn-about-before-traverse branch December 22, 2025 13:27
@github-actions
Copy link
Copy Markdown
Contributor

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 24, 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