This is the last release, or one of the last releases, in 1.10.x series. The next one is going to be PHPStan 1.11, and it's going to be released at some point in May 2024.
Improvements 馃敡
- Forbid PHPUnitPHAR prefixed classes (#3002), thanks @staabm!
- Improve error messages on unnamed parameters (#3010), #10814, thanks @takaram!
Bugfixes 馃悰
- Improve
date()
return types (#2888), #10468, #6613, thanks @zonuexe! - Default value null does not make promoted property type nullable (phpstan/phpstan-src@b2177e3), #9839
- Fix socket_select array types after call (phpstan/phpstan-src@24c5249), #10285
- Fix conditional types in PHPDocs from stubs for native functions (phpstan/phpstan-src@8ae0b28)
- Fix env int key problem (phpstan/phpstan-src@e606fbe), #10833
- Fix false positives about uninitialized properties (#2897), #10523, #10822, thanks @staabm!
- Incremented numeric-string should change to int/float (#2797), #10122, #10187, thanks @staabm!
- Do not generalize big array when combined with empty array (#3003), #10834, thanks @RobertMe!
- Fix string concatenation with benevolent union type (phpstan/phpstan-src@4a4c739), #10863
- Treat
get_defined_vars()
as using constructor arguments (#3012), #10865, thanks @rvanvelzen! - Allow undefined variables passed into by-ref parameters only if the type is nullable (phpstan/phpstan-src@7f8f9cc, phpstan/phpstan-src@7961f7a), #1916
Function signature fixes 馃
- More precise
gc_status()
signature for PHP8.3+ (#2996), thanks @staabm! - Add object shape for
mysqli_result::fetch_fields
(#3005), thanks @schlndh!