-
Notifications
You must be signed in to change notification settings - Fork 575
Fix phpstan/phpstan#11073: Nullsafe operator chaining #5407
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
Merged
VincentLanglet
merged 17 commits into
phpstan:2.1.x
from
phpstan-bot:create-pull-request/patch-nsdr3no
Apr 7, 2026
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2bedf83
Fix phpstan/phpstan#11073: Nullsafe operator chaining false positive
VincentLanglet 20a8328
Remove redundant containsNull check before removeNull
phpstan-bot d7ab184
Add assertType for nullsafe modify call in date-format test
phpstan-bot 97f0294
Add assertType for modify() on union DateTimeImmutable subclasses
phpstan-bot ed3922a
Separate nullsafe modify assertion into its own function
phpstan-bot 3240d14
Add failing test
VincentLanglet 1ede898
Filter caller type to DateTimeInterface subtypes in DateTimeModifyRet…
phpstan-bot 35c0fd3
Include native return types for union members not handled by dynamic …
phpstan-bot 53a43c1
Use filtered remaining type instead of new ObjectType for unhandled c…
phpstan-bot 4579639
Simplify DateTimeModifyReturnTypeExtension to use TypeCombinator::int…
phpstan-bot c94bf83
Improvements
VincentLanglet dc65ae7
Remove unnecessary array_unique call from getObjectClassNames()
phpstan-bot ea795df
Add tests for MethodCallReturnTypeHelper fallback on static calls
phpstan-bot 1e9c190
Fix and tests
VincentLanglet 904c51c
Fix
VincentLanglet d2b04a7
Fix
VincentLanglet 68cc394
Fix cs
VincentLanglet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix
- Loading branch information
commit 904c51ce0f9fd8338271e694a632dab7926f7e95
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.