1.10.19
版本发布时间: 2023-06-14 23:28:27
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Bleeding edge 🔪
- Analysis with zero files results in non-zero exit code (https://github.com/phpstan/phpstan-src/commit/46ff440648e62617df86aa74ba905ffa99897737), #9410
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 🔧
- Detect invalid key in multi dimensional array fetch (#2445), #6315, thanks @schlndh!
- Support unions of scalars in
sprintf()
arguments (https://github.com/phpstan/phpstan-src/commit/1f955703eea90b7bdf8439ede81a5c6adda85af1) - Update nikic/php-parser (https://github.com/phpstan/phpstan-src/commit/51a284b8a8c04a06f430063f0267e168c048d88a)
- Update BetterReflection (https://github.com/phpstan/phpstan-src/commit/ff8ad7e9b3933911d321846bc43f678a43b067d8)
Bugfixes 🐛
- UnusedPrivatePropertyRule - recognize static properties fetched on expr (https://github.com/phpstan/phpstan-src/commit/503978b05e412477d72bb5d846dade3c246f0f70), #9409, #8541
- Union of enum cases accepts the enum class type with negated cases (#2418), #8846, thanks @takaram!
- Fix key type of superglobal variables (#2446), #9306, thanks @schlndh!
- Do not treat definition of functions and class-likes as unreachable (#2263), #4002, #8966, #8319, thanks @takaram!
Function signature fixes 🤖
- Allow
Redis::connect()
to have 7 parameters (#2442), #9413, thanks @thbley!
Internals 🔍
- StringAlwaysAcceptingObjectWithToStringType is supertype of Stringable objects (https://github.com/phpstan/phpstan-src/commit/9de9efa67facca90b5c5c97851eaf8afff310b4e)
1、 phpstan.phar 20.81MB
2、 phpstan.phar.asc 833B