chore(deps): update dependency phpstan/phpstan to ~1.12.0 #127
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.10.0
->~1.12.0
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.12.4
Compare Source
Improvements 🔧
argument.named
are ignorable now (phpstan/phpstan-src@193b4f5)composerAutoloaderProjectPaths
on Windows (#3451), thanks @staabm!treatPhpDocTypesAsCertain
tip (#3452), #11689, thanks @ruudk!Bugfixes 🐛
array_map()
return value (#3425), #10715, #11056, #10685, thanks @rvanvelzen!range()
on PHP 7.x (#3424), thanks @staabm!range()
with float step should return an array of floats (#3447), #11692, thanks @staabm!*strlen()
with positive-int (#3407), #11558, thanks @staabm!Function signature fixes 🤖
Internals 🔍
paratest
(#3440), thanks @schlndh!Output::isDecorated
andOutput::isVeryVerbose
(#3436), thanks @ruudk!v1.12.3
Compare Source
Improvements 🔧
Bugfixes 🐛
ArrayFilterFunctionReturnTypeReturnTypeExtension
and support first-class callable (#3329), #11337, thanks @takaram!list<T>
toarray{T}
(#3412), #11642, thanks @staabm!Function signature fixes 🤖
curl_init()
false returns (#3409), #11640, thanks @tscni!Internals 🔍
COMPOSER_ROOT_VERSION
hack should no longer be necessary (#3414)v1.12.2
Compare Source
Improvements 🔧
Bugfixes 🐛
@mixin
class reflection extensions after all other class reflection extensions (phpstan/phpstan-src@c889baa), #11624, #11342, #10159, https://github.com/larastan/larastan/issues/2032count()
withpositive-int
(#3389), thanks @staabm!Type::reverseArray()
(#3344), thanks @herndlm!Function signature fixes 🤖
version_compare()
operator arg can be null (#3399), #4457, thanks @staabm!Internals 🔍
v1.12.1
Compare Source
Bleeding edge 🔪
@method
@template
tags above traits (phpstan/phpstan-src@aadbf62)@mixin
PHPDoc tag above traits (phpstan/phpstan-src@0d0de94)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
: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 🔧
(bool) $expr
like$expr != false
(#3380), #8881, #7685, #6006, #10528, thanks @staabm!(string) $expr
like$expr != false
(#3387), thanks @staabm!(int) $expr
like$expr != false
(#3384), thanks @staabm!(float) $expr
like$expr != false
(#3391), thanks @staabm!@mixin
above traits (phpstan/phpstan-src@f5e2e32)Bugfixes 🐛
array_filter
with callback optional persistance (#3366), #11570, thanks @robotomarvin!strlen() ==
and===
comparison with integer range (#3342), #11548, thanks @staabm!get_debug_type
produces wrong type for anonymous classes with parent (#3374), #11562, thanks @patrickkusebauch!preg_replace()
return type (#3338), #11547, thanks @staabm!static
in PHPDoc tags above traits as an error (phpstan/phpstan-src@777a82a), #11591$
-only case (#3394), #11622, thanks @staabm!@param-out
variable after assignment (phpstan/phpstan-src@5892e8d), #11580, #6642Internals 🔍
PHPStan\debugScope()
(phpstan/phpstan-src@5909fb2)v1.12.0
Compare Source
Read all about PHPStan 1.12 on phpstan.org »
Major new features 🚀
$matches
frompreg_match
generally available, out of bleeding edge (phpstan/phpstan-src@bd2cec1)Bleeding edge 🔪
@no-named-arguments
(phpstan/phpstan-src@74ba8c2), #5968@param-out
(phpstan/phpstan-src@30c4b9e), #10260@param-closure-this
(phpstan/phpstan-src@2fa539a), #10933@param-closure-this
(phpstan/phpstan-src@95c0a58), #10932@param-immediately-invoked-callable
and@param-later-invoked-callable
(phpstan/phpstan-src@580a6ad), #10932@phpstan-self-out
(phpstan/phpstan-src@6838669)@phpstan-self-out
(phpstan/phpstan-src@892b319)@mixin
(phpstan/phpstan-src@3175c81)@property
tags (phpstan/phpstan-src@55ea2ae), #10752, #9356@method
tags (phpstan/phpstan-src@5b7e474)@extends
,@implements
,@use
for unresolvable types (phpstan/phpstan-src@2bb5282), #11552If 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 🔧
final
,@api
classes made@final
(#3264, phpstan/phpstan-src@5baa146)PhpParser\Node\Stmt\Class_::isAnonymous()
(#3343), thanks @tscni!curl_init()
return type analysis (#3346), thanks @tscni!@phpstan-self-out
above static method (phpstan/phpstan-src@0dfd821)@phpstan-self-out
(phpstan/phpstan-src@e182c06)@phpstan-self-out
(phpstan/phpstan-src@9ebc315)@method
Bugfixes 🐛
strlen()
on integer range (#3337), thanks @staabm!count()
with integer range (#3335), thanks @staabm!Internals 🔍
highlight_string()
stub with a return type extension (#3350)v1.11.11
Compare Source
Improvements 🔧
Bugfixes 🐛
in_array()
(#3319), #9436, thanks @VincentLanglet!AccessoryLiteralStringType::setOffsetValueType()
(phpstan/phpstan-src@93c5226)AccessoryNonFalsyStringType::setOffsetValueType()
(phpstan/phpstan-src@c28c936)count()
(#3309), thanks @staabm!Function signature fixes 🤖
Internals 🔍
v1.11.10
Compare Source
Bleeding edge 🔪
preg_replace_callback()
$matches
(#3281), thanks @staabm!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
: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 🔧
(?)
(phpstan/phpstan-src@39649c2, phpstan/phpstan-src@be65bab), #11436reportUnmatchedIgnoredErrors: false
(phpstan/phpstan-src@b7fe990), #11436count()
with array size (#3302), thanks @staabm!Bugfixes 🐛
ConstantArrayType::isSuperTypeOf()
for empty array (phpstan/phpstan-src@ed6bc0b)Function signature fixes 🤖
Internals 🔍
preg_match()
array shape tests (#3290), thanks @staabm!v1.11.9
Compare Source
Bleeding edge 🔪
preg_match_all()
$matches (#3256), thanks @staabm!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
: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 🐛
abs()
return type (#3263), #11367, thanks @julienfalque!Internals 🔍
v1.11.8
Compare Source
Bleeding edge 🔪
var_export
without$return=true
(#3225), #11320, thanks @staabm!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
: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 🔧
$matches
frompreg_match()
improvements:(\d*)
can be empty-string (#3257), thanks @staabm!diagnose
command to run DiagnoseExtensions (phpstan/phpstan-src@22c84d2)sprintf()
inference (#3232), thanks @staabm!-v
(#3239, #3242), thanks @janedbal!sprintf()
format arg-based return type (#3192), #11248, #10493, thanks @staabm!Bugfixes 🐛
pathinfo()
return type for union type flags (#3120), #10760, thanks @staabm!pow()
lead to error (#2796), #10125, thanks @staabm!Function signature fixes 🤖
Internals 🔍
@api
(#3240), thanks @janedbal!v1.11.7
Compare Source
Improvements 🔧
match
expression analysis with enum with performance in mind (phpstan/phpstan-src@b98abe0), #11263-vvv
CLI option.-vv
for unignorable errors when generating the baseline (phpstan/phpstan-src@d931c89), #3973MutatingScope::resolveType()
- cache closure body analysis data (phpstan/phpstan-src@fd31156), #11283Bugfixes 🐛
@no-named-arguments
above class (phpstan/phpstan-src@815270d), #11275count()
narrowing on $matches (#3210), #11277, thanks @staabm!Function signature fixes 🤖
getimagesize
,getimagesizefromstring
: zero is a possible value for height and width (#3207), thanks @mfruehauf!Internals 🔍
ObjectType::getEnumCases()
(#3203, #3204), #11263, thanks @staabm!v1.11.6
Compare Source
v1.11.5
[Compare Source](https://red
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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.