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

Support inferring new templated type from initial null coalesce assignment #3728

Draft
wants to merge 1 commit into
base: 2.0.x
Choose a base branch
from

Conversation

netpok
Copy link

@netpok netpok commented Dec 12, 2024

Fixes phpstan/phpstan#12250

I made a bug report phpstan/phpstan#12250, and this PR is fixing that.

While all the current tests are passing this PR adds a conditional assignment to NewAssignedToPropertyVisitor which only contained non conditional ones so I'm marking it as draft.

@netpok netpok changed the title Support inferrinng new templated type from initial null coalesce assignment Support inferring new templated type from initial null coalesce assignment Dec 12, 2024
@netpok netpok marked this pull request as draft December 12, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant