1.10.19
Bleeding edge 馃敧
- Analysis with zero files results in non-zero exit code (phpstan/phpstan-src@46ff440), #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 (phpstan/phpstan-src@1f95570) - Update nikic/php-parser (phpstan/phpstan-src@51a284b)
- Update BetterReflection (phpstan/phpstan-src@ff8ad7e)
Bugfixes 馃悰
- UnusedPrivatePropertyRule - recognize static properties fetched on expr (phpstan/phpstan-src@503978b), #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 馃
Internals 馃攳
- StringAlwaysAcceptingObjectWithToStringType is supertype of Stringable objects (phpstan/phpstan-src@9de9efa)