chore(deps): update dependency phpstan/phpstan to v1.10.3 - autoclosed
Compare changes
+ 6
− 6
@@ -8518,16 +8518,16 @@
@@ -8557,7 +8557,7 @@
@@ -8573,7 +8573,7 @@
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | minor |
1.9.18 -> 1.10.3
|
v1.10.3
@not-deprecated
annotation (#2255), https://github.com/phpstan/phpstan/discussions/7422, thanks @stof!array_chunk()
(https://github.com/phpstan/phpstan-src/commit/e4a6d2026ef1218d2629e55991972058b80fef73), #8956
v1.10.2
object
returned by db2_*()
functions are always instances of stdClass
(#2249), thanks @phansys!v1.10.1
treatPhpDocTypesAsCertain: false
(#2248), #8932, thanks @VincentLanglet!in_array
and enums (https://github.com/phpstan/phpstan-src/commit/7d6f0f6a4c8eac67cfb2d810681043f9863f04a7)v1.10.0
Read the article about this release: PHPStan 1.10 Comes With a Lie Detector
elseif
branch and last match expression arm are not reported by default (#2105), #8042, #8485, #7721, #4242, #8240, thanks @staabm!
reportAlwaysTrueInLastCondition
to true
to have them reported againelseif
branch and last match expression arm.instanceof *Type
in favour of new methods on Type
interface, (https://github.com/phpstan/phpstan-src/commit/436e6d3015cbeba4645d38bc7a6a865b9c6d7c74), learn more: Why Is instanceof *Type Wrong and Getting Deprecated?
phpstan-deprecation-rules
installed@var
tag type against native type (https://github.com/phpstan/phpstan-src/commit/a69e3bc2f1e87f6da1e65d7935f1cc36bd5c42fe)
reportWrongPhpDocTypeInVarTag
to true
to have all types validated, not just native onesRuleLevelHelper::accepts()
behaviour (https://github.com/phpstan/phpstan-src/commit/941fc815db49315b8783dc466cf593e0d8a85d23)@param-out
(https://github.com/phpstan/phpstan-src/commit/7ceb19d3b42cf4632d10c2babb0fc5a21b6c8352), https://github.com/phpstan/phpstan/issues/8880#issuecomment-1426971473
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
MutatingScope::getNativeType()
(#1943), #4689, #7578, #6260
treatPhpDocTypesAsCertain
in NumberComparisonOperatorsConstantConditionRule (https://github.com/phpstan/phpstan-src/commit/649eb70ba3c5a2321c5305522b46b49ba3dacc77), #6776, #7075
InClassMethodNode
- add getClassReflection()
(https://github.com/phpstan/phpstan-src/commit/c4ee0b8449df6bcd7e9c4500c7055657515253d8)Type::getTemplateType()
and deprecate GenericTypeVariableResolver
(https://github.com/phpstan/phpstan-src/commit/b73a8aacc1636e1f512ad3850a7126c280b67036, https://github.com/phpstan/phpstan-src/commit/01b4d4e9b89a7f454c77a6f4d4d525ae8bf4ee53)PDO::sqliteCreateFunction
(#2208), #8802, thanks @VincentLanglet!db2_autocommit()
(#2239), thanks @phansys!TypeUtils::getDirectClassNames()
and instanceof TypeWithClassName
, use Type::getObjectClassNames()
instead (#1924), thanks @herndlm!isSuperTypeOf()
instead of accepts()
in the right places (https://github.com/phpstan/phpstan-src/commit/ddb9dc5adc7a09dbe2f60d5cab60e5fd51a928fd)IncompatibleDefaultParameterTypeRule
(https://github.com/phpstan/phpstan-src/commit/a79ad038367ebd4c2722daaeaafd9aab24a421df)Type::acceptsWithReason()
(https://github.com/phpstan/phpstan-src/commit/b763bd9631f7adfdf3feb8a111511b86a87389aa), #3281
testEditorUrlWithRelativePath()
test on PhpStorm console (#2229), thanks @staabm!Type::isEnum()
(https://github.com/phpstan/phpstan-src/commit/93113cbca608a0c03073e322d58cd3d82597163f)Type::getObjectClassReflections()
(https://github.com/phpstan/phpstan-src/commit/4c7046ef681d05e81f5ad866230582a0009272b9)This MR has been generated by Renovate Bot.