1.10.59
版本发布时间: 2024-02-20 22:05:55
phpstan/phpstan最新发布版本:1.12.6(2024-10-06 23:06:59)
Bleeding edge 🔪
-
array_values
rule (report when alist
type is always passed in) (#2917), thanks @kamil-zacek!
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 🔧
- ArrayFilterRule - tip message about
treatPhpDocTypesAsCertain
(https://github.com/phpstan/phpstan-src/commit/f5b198c9801282d7002f5310d5ff5318eec54465) - ArgumentsNormalizer - skip unused arguments in non-variadic signatures, still return a normalized call (https://github.com/phpstan/phpstan-src/commit/17e5bac093c3695a449cf54a2193e74677c0223f)
- Methods in fluent interfaces are considered impure (https://github.com/phpstan/phpstan-src/commit/b0261263e2e3a3643a9a89eb0931c07d8e71dc18)
- Add type-specifying extension for
settype()
(#2920), thanks @ChrisBrenton!
Bugfixes 🐛
- MethodAssertRule - do not report implicitly inherited assert tags (https://github.com/phpstan/phpstan-src/commit/299df5130a14d5a23073edb044b46209ee7b5426), #10573
- Gets rid of the annoying error "Asserted type ... with type ... does not narrow down the type."
- ConstantArrayType - string offset might exist as integer offset (https://github.com/phpstan/phpstan-src/commit/2fb66328fdd7119922ce4579f8951ee776320ef6), #10577
Internals 🔍
- Parallelize levels tests (#2916), thanks @staabm!
-
FunctionReflection::isPure()
andExtendedMethodReflection::isPure()
(https://github.com/phpstan/phpstan-src/commit/03d01eae4a59592f7388bc46b14e5db8eff57df8)
1、 phpstan.phar 21.44MB
2、 phpstan.phar.asc 833B