1.10.36
版本发布时间: 2023-09-29 22:09:01
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Improvements 🔧
- DumpParametersCommand:
--json
option (https://github.com/phpstan/phpstan-src/commit/91a0002402123b96a08978ba400b5d76d5456693) - Implement
reportUncheckedExceptionDeadCatch
option (defaults totrue
) (#2648), #9921, thanks @VincentLanglet! - Support union types in
array_chunk()
(#2635), thanks @staabm! - Result cache: Indicate key differences in cache metadata (#2630), thanks @staabm!
- Get rid of annoying "on an unknown class ReflectionEnum" error on PHP < 8.0 (https://github.com/phpstan/phpstan-src/commit/2b9af363a3d2a9620c4b9bfb65e81813b69623d0)
Bugfixes 🐛
- Fix resolving nested conditional types with union subjects (#2641), #9860, thanks @rvanvelzen!
- Detect array_rand second parameter (#2633), #9803, thanks @staabm!
- Fix subtracting types from union template types (#2652), #9939, thanks @rvanvelzen!
- fix infinite cycle due to incorrect implements/extends (#2483), thanks @schlndh!
- Fix ConstantFloatType value dump precision (#2358), thanks @mvorisek!
- Do not trigger PhpDocInheritanceResolver if we do not need the PHPDoc type when resolving the type of ClassConstFetch (#2414), #9039, thanks @VincentLanglet!
Function signature fixes 🤖
-
connection_*
functions are impure (#2555), thanks @staabm! - Add stubs for
mysqli
andmysqli_result
classes (#2295), thanks @phansys!
Internals 🔍
- E2E test about env variables in config parameters (https://github.com/phpstan/phpstan-src/commit/980ab5bba4de0246587647e8cf6b7abe95697379)
- Prevent unnecessary calls to
getFiniteTypes()
(#2636), thanks @staabm! - Remove unnecessary IO (#2613), thanks @staabm!
- Restrict "Merge maintained branch" workflow to the main repository (#2654), thanks @thg2k!
1、 phpstan.phar 21.06MB
2、 phpstan.phar.asc 833B