Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeQuality] Skip static class const fetch on InlineConstructorDefaultToPropertyRector #3510

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Mar 23, 2023

Fixes rectorphp/rector#7852 it cause error on compile-time constants https://3v4l.org/dfOck

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
…ltToPropertyRector
@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @DmytroPolavis

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@samsonasik
Copy link
Member Author

@TomasVotruba I am merging it ;)

@DmytroPolavis for multiple rules issue with combine with TypedPropertyFromStrictConstructorRector that's seems separate issue to resolve :).

@samsonasik samsonasik merged commit d7e8477 into main Mar 23, 2023
@samsonasik samsonasik deleted the skip-static-number branch March 23, 2023 17:43
samsonasik added a commit that referenced this pull request May 8, 2023
…ltToPropertyRector (#3510)

* [CodeQuality] Skip static class const fetch on InlineConstructorDefaultToPropertyRector

* [ci-review] Rector Rectify

* Fixed 🎉

---------

Co-authored-by: GitHub Action <actions@github.com>
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.

Incorrect behaviour of InlineConstructorDefaultToPropertyRector with static keyword.
2 participants