Skip to content

Resolve conditional @throws types like ($x is 0 ? Exception : void) at call sites and throw points#5874

Open
phpstan-bot wants to merge 4 commits into
phpstan:2.2.xfrom
phpstan-bot:create-pull-request/patch-7619a59
Open

Resolve conditional @throws types like ($x is 0 ? Exception : void) at call sites and throw points#5874
phpstan-bot wants to merge 4 commits into
phpstan:2.2.xfrom
phpstan-bot:create-pull-request/patch-7619a59

Move void check into isThrowsValid and drop voidAllowed parameter

dc9159f
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
E2E tests (bin/phpstan analyse -l 8 -a tests/e2e/data/timecop.php -c tests/e2e/data/empty.neon te...
succeeded Jun 14, 2026 in 1m 0s