PHPStan v2.2.1 Release Notes
Release Date: 2026-05-28 // 17 days ago-
๐ Improvements ๐ง
- Do not require specifying unsealed extra value type after
...on level 6+ (phpstan/phpstan-src@6ae7aa2)
๐ Bugfixes ๐
- Do not unpack unsealed array when expanding arguments in FunctionCallParametersCheck (phpstan/phpstan-src@7da57c9), #14715
- ๐ Fix constants allowed in parameters for multi-variant functions (phpstan/phpstan-src@4a57953), #14719
๐ Function signature fixes ๐ค
- Allow
FILTER_VALIDATE_BOOLas a valid constant forfilter_varandfilter_input(#5778), thanks @aprat84! - โ Add RoundingMode enum cases as valid constants of
round()(phpstan/phpstan-src@53fe519), #14716 - ๐ Fix Collator::setAttribute() allowed constants (phpstan/phpstan-src@f1a3110), #14720
- Do not require specifying unsealed extra value type after