chore(deps): update dependency phpstan/phpstan to ~1.10.0 #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~1.9.0
->~1.10.0
Release Notes
phpstan/phpstan
v1.10.6
Compare Source
Bleeding edge 🔪
PHPStan\Type\Type
interface via@var
(phpstan/phpstan-src@713b98f), https://github.com/nunomaduro/larastan/issues/1567#issuecomment-1460445389If 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
: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 🔧
Bugfixes 🐛
array_combine()
on PHP 8+ (#2276), #9011, thanks @staabm!v1.10.5
Compare Source
Improvements 🔧
Bugfixes 🐛
v1.10.4
Compare Source
Improvements 🔧
Bugfixes 🐛
array_column
(#2244), #8917, thanks @VincentLanglet!filter_var()
handling of a couple of simple scalars and null (#2262), thanks @herndlm!value-of
for multiple enums (phpstan/phpstan-src@3adc91d), #8983->value
on unions of enums (phpstan/phpstan-src@05b85ba), #9000Function signature fixes 🤖
Ds\Sequence::copy()
(#1954), thanks @MidnightDesign!password_hash()
return type (#2260), #5978, thanks @VincentLanglet!v1.10.3
Compare Source
Improvements 🔧
@not-deprecated
annotation (#2255), https://github.com/phpstan/phpstan/discussions/7422, thanks @stof!Bugfixes 🐛
array_chunk()
(phpstan/phpstan-src@e4a6d20), #8956v1.10.2
Compare Source
Improvements 🔧
Function signature fixes 🤖
object
returned bydb2_*()
functions are always instances ofstdClass
(#2249), thanks @phansys!v1.10.1
Compare Source
Bugfixes 🐛
treatPhpDocTypesAsCertain: false
(#2248), #8932, thanks @VincentLanglet!in_array
and enums (phpstan/phpstan-src@7d6f0f6)v1.10.0
Compare Source
Read the article about this release: PHPStan 1.10 Comes With a Lie Detector
Major new features 🚀
elseif
branch and last match expression arm are not reported by default (#2105), #8042, #8485, #7721, #4242, #8240, thanks @staabm!reportAlwaysTrueInLastCondition
totrue
to have them reported againelseif
branch and last match expression arm.instanceof *Type
in favour of new methods onType
interface, (phpstan/phpstan-src@436e6d3), learn more: Why Is instanceof *Type Wrong and Getting Deprecated?phpstan-deprecation-rules
installedBleeding edge 🔪
@var
tag type against native type (phpstan/phpstan-src@a69e3bc)reportWrongPhpDocTypeInVarTag
totrue
to have all types validated, not just native onesRuleLevelHelper::accepts()
behaviour (phpstan/phpstan-src@941fc81)@param-out
(phpstan/phpstan-src@7ceb19d), https://github.com/phpstan/phpstan/issues/8880#issuecomment-1426971473If 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
: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 🔧
MutatingScope::getNativeType()
(#1943), #4689, #7578, #6260treatPhpDocTypesAsCertain
in NumberComparisonOperatorsConstantConditionRule (phpstan/phpstan-src@649eb70), #6776, #7075InClassMethodNode
- addgetClassReflection()
(phpstan/phpstan-src@c4ee0b8)Type::getTemplateType()
and deprecateGenericTypeVariableResolver
(phpstan/phpstan-src@b73a8aa, phpstan/phpstan-src@01b4d4e)Bugfixes 🐛
Function signature fixes 🤖
PDO::sqliteCreateFunction
(#2208), #8802, thanks @VincentLanglet!db2_autocommit()
(#2239), thanks @phansys!Internals 🔍
TypeUtils::getDirectClassNames()
andinstanceof TypeWithClassName
, useType::getObjectClassNames()
instead (#1924), thanks @herndlm!isSuperTypeOf()
instead ofaccepts()
in the right places (phpstan/phpstan-src@ddb9dc5)IncompatibleDefaultParameterTypeRule
(phpstan/phpstan-src@a79ad03)Type::acceptsWithReason()
(phpstan/phpstan-src@b763bd9), #3281testEditorUrlWithRelativePath()
test on PhpStorm console (#2229), thanks @staabm!Type::isEnum()
(phpstan/phpstan-src@93113cb)Type::getObjectClassReflections()
(phpstan/phpstan-src@4c7046e)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.