You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
composer test passes on PHPStan 2.2.x (62/62) but fails on 2.3.1 (10 failures). Not caused by recent extension commits — same code, different PHPStan version.
composer.lock is gitignored, so composer install can pull PHPStan 2.3.1 via phpstan-strict-rules 2.1.0 (^2.3).
Failures
1. pll_the_languages() — void → null (8 tests)
tests/data/pll_the_languages.php expects void; PHPStan 2.3 infers null for default calls.
2. Options foreach — lost narrowing (2 tests)
tests/data/options_edge_cases.php:19–20 — foreach ($options['domains'] as $lang => $domain) infers mixed for loop variables on 2.3. Direct access ($options['domains']) still works. Passes on 2.2.
Workaround: assign first ($domains = $options['domains']; foreach ($domains as …)).
Activity
chore(deps): pin PHPStan to 2.2.x in require-dev only