Skip to content

Report new on an expression whose type is not string|object via new.nonObject#5866

Merged
VincentLanglet merged 5 commits into
phpstan:2.2.xfrom
phpstan-bot:create-pull-request/patch-9u2kw5i
Jun 20, 2026
Merged

Report new on an expression whose type is not string|object via new.nonObject#5866
VincentLanglet merged 5 commits into
phpstan:2.2.xfrom
phpstan-bot:create-pull-request/patch-9u2kw5i

Add nullable string and string-less union test cases for new.nonObject

f6dc3a6
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Generate baseline
succeeded Jun 20, 2026 in 1m 59s