This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Update dependency phpstan/phpstan to v1 - #11
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
June 23, 2022 20:48
8d49d35 to
a8937f0
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
September 25, 2022 16:15
a8937f0 to
50d3d2c
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
November 20, 2022 12:09
50d3d2c to
5ee6c5a
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
March 24, 2023 12:25
073065f to
661e9d9
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
April 3, 2023 10:58
a7713c4 to
3aad33a
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
April 17, 2023 09:59
3aad33a to
1b778c8
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
May 28, 2023 10:24
1b778c8 to
32e1ecf
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
3 times, most recently
from
June 8, 2023 02:41
17d96eb to
f66de50
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
June 20, 2023 13:22
c5fd79c to
918e0c7
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
June 21, 2023 21:12
918e0c7 to
f89de51
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
4 times, most recently
from
July 6, 2023 16:14
1e9a446 to
659fe53
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
July 19, 2023 13:47
659fe53 to
69eb49f
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
August 8, 2023 13:24
77e7941 to
fb932bb
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
August 14, 2023 16:01
fb932bb to
d6e36c4
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
3 times, most recently
from
August 24, 2023 22:54
602b357 to
edc9055
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
September 4, 2023 13:57
edc9055 to
ee917bd
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
September 19, 2023 17:43
353e3b9 to
4be3f55
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
December 1, 2023 15:49
1f7c9f1 to
599b291
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
3 times, most recently
from
December 13, 2023 13:30
082fec2 to
2513f0d
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
5 times, most recently
from
January 8, 2024 13:31
5f239e0 to
be6e97b
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
January 15, 2024 14:27
be6e97b to
10e3514
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
January 24, 2024 13:33
10e3514 to
bdaaeb3
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
February 12, 2024 21:11
bdaaeb3 to
921eb4d
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
February 20, 2024 15:53
921eb4d to
f6fa7c1
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
3 times, most recently
from
March 13, 2024 13:17
e27d225 to
ebf8d08
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
3 times, most recently
from
March 23, 2024 14:39
1091fe6 to
3bd9f75
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
March 28, 2024 17:02
3bd9f75 to
765cd0c
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
April 16, 2024 12:13
765cd0c to
498ad60
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
May 15, 2024 17:24
cc327c9 to
e5673db
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
May 24, 2024 14:40
e5673db to
390c21e
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
June 6, 2024 16:22
fa0ca16 to
f4162fe
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
from
June 17, 2024 17:01
f4162fe to
5ce3494
Compare
renovate
Bot
force-pushed
the
renovate/major-phpstan-packages
branch
2 times, most recently
from
July 6, 2024 12:42
e7cf6db to
3a9f485
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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:
0.12.83->1.11.8Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.11.8Compare Source
Bleeding edge 🔪
var_exportwithout$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 🔧
$matchesfrompreg_match()improvements:(\d*)can be empty-string (#3257), thanks @staabm!diagnosecommand 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.7Compare Source
Improvements 🔧
matchexpression analysis with enum with performance in mind (phpstan/phpstan-src@b98abe0), #11263-vvvCLI option.-vvfor unignorable errors when generating the baseline (phpstan/phpstan-src@d931c89), #3973MutatingScope::resolveType()- cache closure body analysis data (phpstan/phpstan-src@fd31156), #11283Bugfixes 🐛
@no-named-argumentsabove 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.6Compare Source
v1.11.5Compare 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()optionsparameter is optional (#3129), thanks @yphoenix!RedisCluster::__constructsignature (#3130), #11158, thanks @wolfgangzwiauer!AMQPQueue::unbind()routingKey type (#3143), thanks @ben-challis!AMQPQueue::consume()callback (#3144), #9445, thanks @ben-challis!IntlDateFormattermethods (#3149), thanks @chosten!Exception::getTrace()return type (phpstan/phpstan-src@492cd89)Internals 🔍
PrepareCommand::fixComposerJson()(phpstan/phpstan-src@4537ef1)lint >=andPHP_VERSION_IDin NodeScopeResolverTest (phpstan/phpstan-src@b530b0d)TypeInferenceTestCase::gatherAssertTypesFromDirectory()(phpstan/phpstan-src@595de78)v1.11.4Compare Source
Improvements 🔧
--generate-baselinecombined with--pro(phpstan/phpstan-src@dd028cb), #11093phpstan/extension-installerv1.4 (phpstan/phpstan-src@1d005ef)Bugfixes 🐛
numeric-stringtypes after string concat (#3117), thanks @staabm!count()(#2812), thanks @staabm!array_slice()returnsnon-empty-arrayfor existing offsets and positive limit (#3124), #10721, thanks @staabm!ClosureType()as maybe impure by default when no$impurePointsarray provided (#3125), #11135, thanks @jf-m!Function signature fixes 🤖
tempnam()andtmpfile()to benevolent union (#3111), thanks @zonuexe!gnupg_initfunction (#3118), thanks @pistej!Internals 🔍
react/promise(phpstan/phpstan-src@da754e2)v1.11.3Compare Source
Improvements 🔧
*ParameterClosureTypeExtension(#3089), thanks @canvural!get_debug_typefunction (#2910), #10558, #10585, thanks @patrickkusebauch!explodereturn type precision (#3096), thanks @staabm!Bugfixes 🐛
array_mapargument take into account unpack (#2901), #10527, thanks @ryium!parse_url(#2918), #4754, thanks @ChrisBrenton!$http_response_headeris alist<string>(#2959), thanks @Seldaek!str_repeat()(#2914), #10572, thanks @staabm!in_arrayis not strict (#2539), #9662, #10228, thanks @staabm!substr()type narrowing for possibly single char result (#3081), #11035, #9804, thanks @staabm!$thiscannot be reassigned when passed by reference (#3097), #10477, thanks @takaram!constant('')(#3013), #10867, thanks @staabm!Function signature fixes 🤖
SplFileObject::fgets()(#3103), thanks @DanielSiepmann!Localesignatures (#2880), #7855, #8149, thanks @devnix!fread()length parameter type and return type (#3105), thanks @thg2k!non-falsy-string(#3108), thanks @schlndh!Internals 🔍
TemplateTagValueNode::$namecannot be empty string (phpstan/phpdoc-parser@fcaefac), thanks @staabm!v1.11.2Compare Source
Improvements 🔧
@phpstan-ignoreidentifiers parser (#3079, #3090, #3091), thanks @janedbal!@phpstan-ignore identifier (comment), identifier2 (comment2)$passedToTypefrominFunctionCallsStack(phpstan/phpstan-src@ca41b7d, phpstan/phpstan-src@da4fd7a), #5508, #10254, #10732Function signature fixes 🤖
Internals 🔍
nette/di(phpstan/phpstan-src@2ab647e)array_filtercallbacks (phpstan/phpstan-src@754b7b8)@apiannotation toAcceptsResult::__construct(#3092), thanks @canvural!v1.11.1Compare Source
Improvements 🔧
sprintf()constant result inference (#3075), thanks @staabm!Bugfixes 🐛
impure(Function|Method).pureif it has@phpstan-asserttags (phpstan/phpstan-src@9544f8a)reportPossiblyNonexistentConstantArrayOffset: true(phpstan/phpstan-src@5277630), #10997selfandstaticin@phpstan-closure-thisfrom trait stub file (phpstan/phpstan-src@9340249), #11009Function signature fixes 🤖
uriinstream_get_meta_datacalls is always present on PHP 8.3+ (phpstan/phpstan-src@885d46b), #11024, #10999v1.11.0Compare Source
Read the article about PHPStan 1.11 on phpstan.org »
Major new features 🚀
@phpstan-ignorecomment (uses current or next line automatically)ignoreErrorssection of your configuration file (phpstan.neon)-v@phpstan-ignore-lineand@phpstan-ignore-next-lineto the new@phpstan-ignorecomment style with error identifiers. The old comment style is dangerous because it ignores all errors, current and future, on that line.ignoreErrors, from your baseline and also ignored locally in source code using comments--proCLI option@param-immediately-invoked-callable,@param-later-invoked-callable@phpstan-pure@param-closure-thisto describe what$thisis bound to in a passed closurereportPossiblyNonexistentGeneralArrayOffsetreportPossiblyNonexistentConstantArrayOffsetBleeding edge 🔪
@phpstan-pureabove functions and methodsnew/function call/method call/static method call on a separate line without any side effects even without@phpstan-purePHPDoc tag on the declaration side@param-out(phpstan/phpstan-src@56b2002)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 🔧
checkMissingIterableValueType: falseandcheckGenericClassInNonGenericObjectType: falsein favour of ignoring via identifiers (phpstan/phpstan-src@a649981)newtype (#3050), #9704, thanks @ruudk!RuleErrorBuilder::file()- file path needs to exist (phpstan/phpstan-src@c453f29)$thisand used variables after invoking closure (#2980)@phan-prefixes on recognized PHPDoc tags (#3000), thanks @anomiex!pure-callableandpure-ClosurePHPDoc types (phpstan/phpstan-src@cdaff5f)highlight_string()flips side-effects depending on $return (#3021), thanks @staabm!Bugfixes 🐛
AccessoryNonFalsyStringType::toInteger()returnIntegerTypeinstead of non-zero (#3018), #10893, thanks @zonuexe!polluteScopeWithAlwaysIterableForeach(#3029), #10922, thanks @VincentLanglet!count($x) > $n === truenegation (#3037), #10952, thanks @rvanvelzen!newwith wrong name case (phpstan/phpstan-src@59ac31a)preg_match_allbehaviour with no flags (phpstan/phpstan-src@a856ec7)file_get_contentsis an impure function (phpstan/phpstan-src@2b5b317)ClosureType::equals()(phpstan/phpstan-src@29c35b5)exceptions.implicitThrows: false(#3016), thanks @janedbal!ConstantArrayType::hasOffsetValueType()for offset union type where all types are valid (phpstan/phpstan-src@26e949b)non-empty-listalways has offset 0 (phpstan/phpstan-src@f4d1d48)non-empty-string/non-falsey-stringaftermb_strlen()(#3038), thanks @staabm!Type::isOffsetAccessLegal()to detect offset access that crashes even inisset()(#3045), #8393, #10926, thanks @rajyan!match()condition correctly (#3053), #10974, #9694, thanks @rvanvelzen!json_decodewith force array flag: subtract all objects, not just stdClass (#3052), thanks @rajyan!strlen($x) > $n === truenegation (#3040), thanks @staabm!Continue_points should not be used forwhile (true)(#3057), #10980, thanks @greew!Function signature fixes 🤖
stream_get_meta_data()optional (#3024), #10887, thanks @hirokinoue!Closure::bind$newScopeparam (#2817), thanks @mvorisek!Imagick::identifyImage()return type (#3017), thanks @SVillette!Internals 🔍
ClassReflection::getClassTypeDescription()(phpstan/phpstan-src@dec9e43)RuleErrorBuilder::treatPhpDocTypesAsCertainTip()for a bit more DRYness (#3035), thanks @axlon!v1.10.67Compare Source
This is the last release, or one of the last releases, in 1.10.x series. The next one is going to be PHPStan 1.11, and it's going to be released at some point in May 2024.
Improvements 🔧
Bugfixes 🐛
date()return types (#2888), #10468, #6613, thanks @zonuexe!get_defined_vars()as using constructor arguments (#3012), #10865, thanks @rvanvelzen!Function signature fixes 🤖
gc_status()signature for PHP8.3+ (#2996), thanks @staabm!mysqli_result::fetch_fields(#3005), thanks @schlndh!Internals 🔍
v1.10.66Compare Source
Improvements 🔧
Bugfixes 🐛
array_pushpreserves list (phpstan/phpstan-src@5473b67)Function signature fixes 🤖
redis::getsignature (#2990), thanks @VincentLanglet!Internals 🔍
v1.10.65Compare Source
Improvements 🔧
Bugfixes 🐛
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 was generated by Mend Renovate. View the repository job log.