Update phpstan#181
Merged
Merged
Conversation
73a096a
23766aa to
73a096a
Compare
73a096a to
a087f43
Compare
a087f43 to
8ba7d58
Compare
amorimjuliana
approved these changes
Nov 6, 2022
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.8.11->1.9.11.1.3->1.2.2Release Notes
phpstan/phpstan
v1.9.1Compare Source
Improvements 🔧
AccessoryArrayListTypeis part of BC promise (#1967), thanks @enumag!objecttostringresult in an error (#1948), thanks @rvanvelzen!checkBenevolentUnionTypesconfig (#1940), thanks @VincentLanglet!Bugfixes 🐛
mt_randreturn type (#1956), #8272, thanks @enumag!strtrreturnsnon-empty-string(#1963), thanks @staabm!v1.9.0Compare Source
Check out the article about this release!
Major new features 🚀
@phpstan-assert,@phpstan-assert-if-true,@phpstan-assert-if-false(#1317), #7110, #8186, thanks @rvanvelzen!@phpstan-self-out/@phpstan-this-outsupport (#1799), thanks @rvanvelzen!@param-outsupport (#1804), #7231, #6871, #6186, #4372, #5785, thanks @staabm!ClassReflection::getAllowedSubTypes()(#1477), thanks @jiripudil!checkBenevolentUnionTypesto strictly check BenevolentUnionType (#1930), #8223, thanks @VincentLanglet!Bleeding edge 🔪
listtype (#1751), #3311, #8185, #6243, thanks @rvanvelzen!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 🔧
non-negative-intandnon-positive-int(#1803), thanks @rvanvelzen!NonexistentOffsetInArrayDimFetchCheck(#1801), thanks @herndlm!@methodextension to look at@throwsin __call (#1842), #8163, thanks @VincentLanglet!$this/staticin conditional return types (#1863), thanks @rvanvelzen!mb_convert_case()andmb_convert_kana()(#1866), thanks @zonuexe!callable-objectandcallable-string(#1906), thanks @rvanvelzen!FunctionReflection/ExtendedMethodReflection::returnsByReference()(#1899), #6005, thanks @staabm!MutatingScope::enterNamespace()is part of BC promise (phpstan/phpstan-src@92732ca)Bugfixes 🐛
ScopeorFunctionReflectionin userland class (phpstan/phpstan-src@2796f8d)no-named-argumentsimplies variadic argument is alist(#1796), thanks @herndlm!Countableincount()(#1876), thanks @staabm!RuleLevelHelper::accepts()for constant arrays (#1911), #8209, thanks @rvanvelzen!get_object_var()as private property read (#1902), #3654, thanks @vovochka404!@param-out(phpstan/phpstan-src@cf40007)$thisin nativeExpressionTypes (#1936), thanks @rajyan!@phpstan-self-out(#1949), thanks @staabm!Function signature fixes 🤖
mb_check_encoding()acceptsarray<string>in PHP 7.2+ (#1867), thanks @zonuexe!Internals 🔍
Type::getConstantArraysas successor forTypeUtils::getOldConstantArrays(#1684), thanks @herndlm!TypeUtils::getArrays()andTypeUtils::getAnyArrays()(#1687), thanks @herndlm!Type::getLastIterableValueType()(#1811), thanks @herndlm!Type::getFirstIterableValueType()(#1811), thanks @herndlm!Type::getFirstIterableKeyType()andType::getLastIterableKeyType()(#1812), #8152, thanks @herndlm!JustNullableTypeTrait(#1821), thanks @herndlm!Type::isConstantArray()(#1822), thanks @herndlm!getConstantArrays()usage withisConstantArray()(#1827), thanks @herndlm!Type::getArraySize()(#1828), thanks @herndlm!Type::flipArray()(#1832), thanks @herndlm!Type::getKeysArray()andType::getValuesArray()(#1851), thanks @herndlm!FunctionReflection::getDocComment()(#1834), thanks @staabm!Type::popArray()andType::shiftArray()(#1847), thanks @herndlm!Type::shuffleArray()(#1853), thanks @herndlm!ConstantArrayType::generalizeToArray()(#1856), thanks @herndlm!array_pop/array_shiftarg (#1864), thanks @herndlm!ArrayType::castToArrayKey()withType::toArrayKey()(#1841), thanks @rvanvelzen!Type::fillKeysArray()(#1869), thanks @herndlm!ErrorTypefor invalid keys (#1869), thanks @herndlm!is_(int,object,resource,scalar)extensions with stubs (#1884), thanks @BackEndTea!pow()return type extension to re-useBinaryOp\Powtype inference (#1900), thanks @staabm!Type::getArrays()usage inInvalidKeyInArrayDimFetchRule(#1872), thanks @herndlm!Type::searchArray()(#1874), thanks @herndlm!variableTypesto save byexprString(#1909), thanks @rajyan!variableTypesandmoreSpecificTypes(#1919), thanks @rajyan!::set-*in GitHub Actions (#1917), thanks @rez1dent3!Type::intersectKeyArray()(#1916), thanks @herndlm!phpstan/phpstan-phpunit
v1.2.2Compare Source
v1.2.1Compare Source
v1.2.0Compare Source
@coversand@coversDefaultClassfor methods and classesConfiguration
📅 Schedule: Branch creation - "before 4am every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.