Skip to content

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

Merged
samsonasik merged 3 commits intomainfrom
skip-static-number
Mar 23, 2023
Merged

[CodeQuality] Skip static class const fetch on InlineConstructorDefaultToPropertyRector#3510
samsonasik merged 3 commits intomainfrom
skip-static-number

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

@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