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:
phpstan/phpstan
^1.9.17
->^1.10.1
phpstan/phpstan-deprecation-rules
^1.1.1
->^1.1.2
phpstan/phpstan-phpunit
^1.3.4
->^1.3.7
phpunit/phpunit
^10.0.7
->^10.0.11
release-drafter/release-drafter
v5.22.0
->v5.23.0
Release Notes
phpstan/phpstan
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)v1.9.18
Compare Source
Improvements 🔧
Bugfixes 🐛
Internals 🔍
ConstantArrayType::hasOffsetValueType()
(#2238), thanks @herndlm!phpstan/phpstan-deprecation-rules
v1.1.2
Compare Source
phpstan/phpstan-phpunit
v1.3.7
Compare Source
v1.3.6
Compare Source
v1.3.5
Compare Source
instanceof *Type
sebastianbergmann/phpunit
v10.0.11
Compare Source
v10.0.10
Compare Source
v10.0.9
Compare Source
v10.0.8
Compare Source
release-drafter/release-drafter
v5.23.0
Compare Source
What's Changed
New
include-pre-releases
configuration option (#1302) @robbinjanssenFull Changelog: release-drafter/release-drafter@v5.22.0...v5.23.0
Configuration
📅 Schedule: Branch creation - "before 3am" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.