-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update phpstan packages #189
base: master
Are you sure you want to change the base?
Conversation
Kudos, SonarCloud Quality Gate passed!
|
0627f3a
to
88808d8
Compare
Kudos, SonarCloud Quality Gate passed!
|
88808d8
to
56abdc6
Compare
Kudos, SonarCloud Quality Gate passed!
|
56abdc6
to
1897cda
Compare
|
d7f39a5
to
8d9d989
Compare
8d9d989
to
2ade50d
Compare
|
This PR contains the following updates:
1.9.*@dev
->1.12.*@dev
1.4.*@dev
->1.6.*@dev
3.1.*@dev
->3.4.*@dev
Release Notes
phpstan/phpstan (phpstan/phpstan)
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
Bleeding edge 🔪
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 🐛
get_debug_type()
DynamicFunctionReturnTypeExtension (#3128), thanks @patrickkusebauch!Function signature fixes 🤖
gnupg_init()
options
parameter is optional (#3129), thanks @yphoenix!RedisCluster::__construct
signature (#3130), #11158, thanks @wolfgangzwiauer!AMQPQueue::unbind()
routingKey type (#3143), thanks @ben-challis!AMQPQueue::consume()
callback (#3144), #9445, thanks @ben-challis!IntlDateFormatter
methods (#3149), thanks @chosten!Exception::getTrace()
return type (phpstan/phpstan-src@492cd89)Internals 🔍
PrepareCommand::fixComposerJson()
(phpstan/phpstan-src@4537ef1)lint >=
andPHP_VERSION_ID
in NodeScopeResolverTest (phpstan/phpstan-src@b530b0d)TypeInferenceTestCase::gatherAssertTypesFromDirectory()
(phpstan/phpstan-src@595de78)v1.11.4
Compare Source
Improvements 🔧
--generate-baseline
combined with--pro
(phpstan/phpstan-src@dd028cb), #11093phpstan/extension-installer
v1.4 (phpstan/phpstan-src@1d005ef)Bugfixes 🐛
numeric-string
types after string concat (#3117), thanks @staabm!count()
(#2812), thanks @staabm!array_slice()
returnsnon-empty-array
for existing offsets and positive limit (#3124), #10721, thanks @staabm!ClosureType()
as maybe impure by default when no$impurePoints
array provided (#3125), #11135, thanks @jf-m!Function signature fixes 🤖
tempnam()
andtmpfile()
to benevolent union (#3111), thanks @zonuexe!gnupg_init
function (#3118), thanks @pistej!Internals 🔍
react/promise
(phpstan/phpstan-src@da754e2)v1.11.3
Compare Source
Improvements 🔧
*ParameterClosureTypeExtension
(#3089), thanks @canvural!get_debug_type
function (#2910), #10558, #10585, thanks @patrickkusebauch!explode
return type precision (#3096), thanks @staabm!Bugfixes 🐛
array_map
argument take into account unpack (#2901), #10527, thanks @ryium!parse_url
(#2918), #4754, thanks @ChrisBrenton!$http_response_header
is alist<string>
(#2959), thanks @Seldaek!str_repeat()
(#2914), #10572, thanks @staabm!in_array
is not strict (#2539), #9662, #10228, thanks @staabm!substr()
type narrowing for possibly single char result (#3081), #11035, #9804, thanks @staabm!$this
cannot be reassigned when passed by reference (#3097), #10477, thanks @takaram!constant('')
(#3013), #10867, thanks @staabm!Function signature fixes 🤖
SplFileObject::fgets()
(#3103), thanks @DanielSiepmann!Locale
signatures (#2880), #7855, #8149, thanks @devnix!fread()
length parameter type and return type (#3105), thanks @thg2k!non-falsy-string
(#3108), thanks @schlndh!Internals 🔍
TemplateTagValueNode::$name
cannot be empty string (phpstan/phpdoc-parser@fcaefac), thanks @staabm!v1.11.2
Compare Source
Improvements 🔧
@phpstan-ignore
identifiers parser (#3079, #3090, #3091), thanks @janedbal!@phpstan-ignore identifier (comment), identifier2 (comment2)
$passedToType
frominFunctionCallsStack
(phpstan/phpstan-src@ca41b7d, phpstan/phpstan-src@da4fd7a), #5508, #10254, #10732Function signature fixes 🤖
Internals 🔍
nette/di
(phpstan/phpstan-src@2ab647e)array_filter
callbacks (phpstan/phpstan-src@754b7b8)@api
annotation toAcceptsResult::__construct
(#3092), thanks @canvural!v1.11.1
Compare Source
Improvements 🔧
sprintf()
constant result inference (#3075), thanks @staabm!Bugfixes 🐛
impure(Function|Method).pure
if it has@phpstan-assert
tags (phpstan/phpstan-src@9544f8a)reportPossiblyNonexistentConstantArrayOffset: true
(phpstan/phpstan-src@5277630), #10997self
andstatic
in@phpstan-closure-this
from trait stub file (phpstan/phpstan-src@9340249), #11009Function signature fixes 🤖
uri
instream_get_meta_data
calls is always present on PHP 8.3+ (phpstan/phpstan-src@885d46b), #11024, #10999v1.11.0
Compare Source
Read the article about PHPStan 1.11 on phpstan.org »
Major new features 🚀
@phpstan-ignore
comment (uses current or next line automatically)ignoreErrors
section of your configuration file (phpstan.neon)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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.