1.10.27
版本发布时间: 2023-08-05 18:01:23
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Bleeding edge 🔪
- More precise
stream_socket_client()
signature (#2519), thanks @staabm! - More precise
scandir()
signature (#2518), thanks @staabm! - More precise
extract()
signature (#2517), thanks @staabm!
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon
:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
- Report trait access to unititialized property in the trait instead of class (#2531), thanks @schlndh!
- Type projections, part 2: enforce elementary rules (#2481), thanks @jiripudil!
- Unify ignoring lines in traits with parser tokens (https://github.com/phpstan/phpstan-src/commit/01294d86b811444b72d7c67c5e75f115daddbd13), #6175
Bugfixes 🐛
- Fix json method exception (#2524), #9568, thanks @VincentLanglet!
- Support of printf with dynamic width (#2543), #9674, thanks @kukulich!
- Support of printf with dynamic precision (and improved support of dynamic width) (#2544), #9677, thanks @kukulich!
- Fix types for conditional parameters after checks (#2548), #7915, thanks @rvanvelzen!
- Prevent
Call to end() on null
(https://github.com/phpstan/phpstan-src/commit/a5e5719bcbe3385f2bac77704e7da850da766a01), #9722 - Fix internal error in SimpleXMLElementConstructorThrowTypeExtension (#2561), #9716, thanks @staabm!
- Method extensions class name is case-insensitive (#2562), #9716, thanks @staabm!
- InArrayFunctionTypeSpecifyingExtension - fix calls with less than 2 parameters (https://github.com/phpstan/phpstan-src/commit/4d77e98e151599d12fd828df969929ed419a0924), #9711
Function signature fixes 🤖
-
uopz_flags
- flags are optional (https://github.com/phpstan/phpstan-src/commit/917750efd8550446492e91ca3069179416fa80f1), #9611 - Add
base64_decode
overloads to PHP 8+ (#2529), #9428, thanks @dktapps! - Mark few Ds methods as impure (#2550), thanks @simPod!
Internals 🔍
- Avoid doing work before its necessary in mutating scope. (#2537), thanks @mad-briller!
- Changed
linesToIgnore
attribute format (https://github.com/phpstan/phpstan-src/commit/2862a7bf7927a7e76771b71f43206d01dfc5d6ef) - Prevent unnecessary work in MutatingScope (#2554), thanks @staabm!
- Validate parameters with parametersSchema each time after container creation (#2558)
1、 phpstan.phar 20.95MB
2、 phpstan.phar.asc 833B