Skip to content

Use declared property type instead of scope-narrowed type when inferring generic new expression types#5467

Merged
staabm merged 8 commits into
phpstan:2.1.xfrom
phpstan-bot:create-pull-request/patch-uu4m0vb
Apr 16, 2026
Merged

Use declared property type instead of scope-narrowed type when inferring generic new expression types#5467
staabm merged 8 commits into
phpstan:2.1.xfrom
phpstan-bot:create-pull-request/patch-uu4m0vb

Add custom generic class test to demonstrate fix is not WeakMap-specific

9051e36
Select commit
Loading
Failed to load commit list.
Sign in for the full log view

Annotations

1 warning
Dump PHP symbols
succeeded Apr 15, 2026 in 2m 1s