Skip to content

Preserve constant array shape when setting union of constant scalar keys

adac30e
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Fix phpstan/phpstan#12665: should return array{a: string, b: int, c: int} but returns non-empty-array<'a'|'b'|'c', int|string> #5193

Preserve constant array shape when setting union of constant scalar keys
adac30e
Select commit
Loading
Failed to load commit list.
E2E tests (bin/phpstan analyse -l 8 tests/e2e/anon-class/Granularity.php)
succeeded Mar 10, 2026 in 32s