Skip to content

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

Development

Successfully merging this pull request may close these issues.

False positive Property HelloWorld::$bug (WeakMap<stdClass, stdClass>) does not accept WeakMap<object, mixed>|WeakMap<stdClass, stdClass>.

1 participant