Skip to content

Conversation

@samsonasik
Copy link
Contributor

@samsonasik samsonasik commented Dec 22, 2025

@TomasVotruba if this accepted, this will should reduce unnecessary tweak in rector Printer

https://github.com/rectorphp/rector-src/blob/e39c3e1250194f9eaacf34c78c8e951c84f26222/src/PhpParser/Printer/BetterStandardPrinter.php#L131-L146

This PR ensure immediate unwrap AlwaysRememberedExpr after used on NodeScopeResolver so not hide behind deep cloned node.

@samsonasik
Copy link
Contributor Author

@ondrejmirtes Ready to merge 👍

CI notice seems unrelated as happen on latest 2.1.x branch as well.

@ondrejmirtes
Copy link
Member

Thank you, let's try this. I'll let you know if it breaks anything later.

@ondrejmirtes ondrejmirtes merged commit e7dbf8b into phpstan:2.1.x Dec 22, 2025
633 of 640 checks passed
@TomasVotruba
Copy link
Contributor

Thank you @ondrejmirtes 👏

@samsonasik
Copy link
Contributor Author

Thank you @ondrejmirtes, I tested phpstan 2.1.x-dev on rector-src and it seems working ok 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants