fix: SafeDeclareStrictTypesRector#7856
Merged
samsonasik merged 2 commits intorectorphp:mainfrom Jan 22, 2026
Merged
Conversation
f23650b to
62502b8
Compare
62502b8 to
46664d7
Compare
Contributor
Author
|
@samsonasik, this should be good to go---after some digging I found that PHPStan is a very lenient with With these changes Rector safely updated ~1500 of my files and the pest and phpstan ci jobs passed |
samsonasik
reviewed
Jan 21, 2026
samsonasik
reviewed
Jan 21, 2026
46664d7 to
f629d5d
Compare
Contributor
Author
|
@samsonasik, done 👍 |
samsonasik
approved these changes
Jan 22, 2026
Member
|
Thank you @calebdw |
|
@TomasVotruba @samsonasik, any chance it can be released soon? |
Member
|
@MrPunyapal you can try dev-main for now, it now excluded from sets as require more tests on real life project, see: |
|
Thanks for update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just replicating the failure for now---this seems to be a phpstan bug, the following is returning true when it should be returning false:
This should be
Maybebecause the$valueTypemight not be aint|float, but instead phpstan is saying this isYes