This PR was automatically generated byConductor.
The PR contains the changes generated by running the following command:
composer update phpstan/phpstan:1.12.27 phpstan/phpstan-phpunit:1.4.2 phpstan/phpstan-strict-rules:1.6.2 --with-all-dependencies --minimal-changes
Changelog
phpstan/phpstan (Source:GitHub Releases))
1.12.27
Major new features 🚀
Improvements 🔧
Bugfixes 🐛
1.12.26
Improvements 🔧
Bugfixes 🐛
- Fix ImpossibleCheckTypeFunctionCallRule for
is_subclass_of andis_a (#3788),#3979,#8464, thanks@VincentLanglet! - Fix
numeric-string toarray-key (#3326),#4163,#4671,#8592,#11390,#12413, thanks@VincentLanglet! - Fix
callable-string must benon-empty-string (#3983),#12979, thanks@aivchen! - Use SoapClientMethodsClassReflectionExtension as last extension (#3955),#12834, thanks@VincentLanglet!
Function signature fixes 🤖
1.12.25
Consider comparison as strict when type is the same (#3942),#12884, thanks@VincentLanglet!
1.12.24
Bugfixes 🐛
Function signature fixes 🤖
1.12.23
Fix condition of fall-through case not used for exhaustive checks (#3900),#11064,#3488,#8719,#12722, thanks@rvanvelzen!
1.12.22
Improvements 🔧
Bugfixes 🐛
1.12.21
Bugfixes 🐛
Function signature fixes 🤖
1.12.20
Bugfixes 🐛
Internals 🔍
1.12.19
Improvements 🔧
- Cache the result of
ClassReflection::hasMethod() method (#3825), thanks@canvural!
Function signature fixes 🤖
1.12.18
Bugfixes 🐛
Function signature fixes 🤖
1.12.17
If you're usinglarastan/larastan PHPStan extension, please update to version 2.9.14 alongside PHPStan 1.12.17 for improved compatibility with the new genericstatic<...> type. Thank you.
Improvements 🔧
Bugfixes 🐛
Internals 🔍
1.12.16
Bugfixes 🐛
- Calling to a constructor with promoted properties has side effects (phpstan/phpstan-src@8b27943),#12379
- Support arrays with union value-types in
implode() (#3772),#11854, thanks@staabm! - Avoid false inference with instanceof (#3657), thanks@VincentLanglet!
- Casting ArrayObject to array should not lead to array shape (phpstan/phpstan-src@d38ed50),#12182
- Add ArrayChangeKeyCaseFunctionReturnTypeExtension (#3549),#11795,#10960, thanks@VincentLanglet!
- More precise
hash() return type (#3665), thanks@VincentLanglet! - Fix union of lowercase/uppercase string with empty string (#3751), thanks@VincentLanglet!
- Implement
OpenSslEncryptParameterOutTypeExtension (#3753), thanks@paulbalandan! - Update Symfony polyfills (phpstan/phpstan-src@24cdeac),#12443
- Inferring
new from parent constructor - reject types that would fail bound check of the child class (phpstan/phpstan-src@d06f792),#12386
Function signature fixes 🤖
Internals 🔍
- Makefile: Disable Xdebug in dev tools (#3467), thanks@staabm!
- MinMaxFunctionReturnTypeExtension: Cleanup
instanceof ConstantScalarType (#3773), thanks@staabm!
1.12.15
Bugfixes 🐛
Internals 🔍
- Cleanup
instanceof ConstantBooleanType checks (#3771), thanks@staabm!
1.12.14
Fixpreg_match() group containing start/end meta characters (#3740),#12297, thanks@staabm!
1.12.13
Improvements 🔧
get_defined_vars() return type contains known variables (#3624),#11948,#11740, thanks@MartinMystikJonas!- Lazier return in
UnionType->isSuperTypeOfWithReason() (#3692,#3713), thanks@staabm! - 5x Faster
IntersectionType->getEnumCases() (#3695), thanks@staabm! MixedType::toArrayKey() returnsBenevolentUnionType (#3696)- Optimization - do not enter anonymous classes during loop analysis (phpstan/phpstan-src@621e168)
- Introduce
ClassAsClassConstantRule (#3697),#10859, thanks@paulbalandan! - 10% faster
FunctionCallParametersCheck (#3734), thanks@staabm! - Faster
MutatingScope::getNodeKey() (#3736), thanks@staabm!
Bugfixes 🐛
- Fix
iterator_to_array return type with generators (#3652), thanks@paulbalandan! - Array map on multiple elements is a list (#3716),#12223, thanks@VincentLanglet!
- RegexArrayShapeMatcher: fix regex wildcard omitted from type (#3721),#12211, thanks@staabm!
- RegexArrayShapeMatcher: fix regex alternatives in capture group are concatenated (#3722),#12210,#12173, thanks@staabm!
- RegexArrayShapeMatcher: Don't narrow 'J' modifier (#3723),#12126, thanks@staabm!
- Add support for internal classes that overload offset access (#3725),#12235, thanks@Girgias!
- Support
# comments in regex withx modifier (#3735,#3739),#12242, thanks@staabm!
Function signature fixes 🤖
Internals 🔍
1.12.12
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
1.12.11
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
1.12.10
Bugfixes 🐛
1.12.9
Improvements 🔧
Bugfixes 🐛
- Fix too early lowercase-string inference (#3585),#11852, thanks@VincentLanglet!
- Support
for endless loops (#3573),#6807,#8463,#9374, thanks@herndlm! - More precise types for
preg_match greater than0 (#3612),#11293, thanks@staabm! - Too-wide return type - do not report void in PHPDoc union type (phpstan/phpstan-src@5f0b1cc),#11980
- Too-wide return type - allow
void return type in a union when the returned expr is originallyvoid (phpstan/phpstan-src@80c1df2),#11980 - RichParser - fix
@phpstan-ignore with trait in the same file (phpstan/phpstan-src@381c137),#11981
Internals 🔍
1.12.8
Improvements 🔧
Bugfixes 🐛
- Do not transform
$this in return type even in final classes (#3599),#11857, thanks@calebdw! - Exclude
E_DEPRECATED from error_reporting (phpstan/phpstan-src@277e34b),#11937 - More precise types in immediately invoked callables (#3593,#3602),#11561,#11945, thanks@staabm!
- Only use last for condition to filter scope (#3578), thanks@herndlm!
- Preserve correct UnionType subclass in
filterTypes() (#3535),#11663, thanks@VincentLanglet!
Function signature fixes 🤖
Imagick::writeImage(s)File supportingformat parameter (#3588), thanks@kingjia90!
Internals 🔍
1.12.7
Major new features 🚀
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
Internals 🔍
phpstan/phpstan-phpunit (Source:GitHub Releases))
1.4.2
1.4.1
- 11d4235 - fix: Make sure Assert::assertIsList correctly asserts an array as list
- 3cc8554 - Fixes after PHPStan update
- 09e2d3b - Uncover everything behind the bleedingEdge flag
- 4d861e0 - Fix after TypeSpecifier BC break
- 3faa605 - Update build-cs
- 953195d - Stop testing PHP 7.2 and 7.3
- 7f1457f - Open 2.0.x
phpstan/phpstan-strict-rules (Source:GitHub Releases))
1.6.2
- b564ca4 - Handle SimpleXMLElement in VariablePropertyFetchRule
- ed6fea0 - Added
strictRulesInstalled parameter - a4a6a08 - Remove dead test because of raised min-php version
- b60bffc - Fix
- 5d50bde - Fix
- 0368403 - Fix
- 1721dbf - Fix after PHPStan update
- e208c93 - Fix after PHPStan update
- 63956f7 - Moved illegalConstructorMethodCall rules from phpstan to phpstan-strict-rules
- ad53bd9 - Remove options removed in PHPStan 2.0
- 914b5e3 - Everything from Bleeding Edge enabled
- 988fab9 - Add more separate rule toggles
- e227ffd - Merge remote-tracking branch 'origin/1.6.x' into 2.0.x
- 90006f2 - Merge branch '1.6.x' into 2.0.x
- 1062d48 - Fix
- 5eec39f - Set
polluteScopeWithBlock to false - 8e2c8b0 - Fix deprecations
- 1ccec91 - Remove unnecessary dependency on nikic/php-parser
- f8092f9 - Update build-cs
- f647999 - Stop testing PHP 7.2 and 7.3
- f6fb84e - Open 2.0.x
Task options
If you close the PR, the task will be skipped and Conductor will schedule the next task. Clicking the "Skip" button in the UI has the same effect. Conductor won't attempt to update the dependency to this exact version again but it will schedule updates to newer versions.
Powered byPrivate Packagist
This PR was automatically generated byConductor.
The PR contains the changes generated by running the following command:
Changelog
phpstan/phpstan (Source:GitHub Releases))
1.12.27
Major new features 🚀
Improvements 🔧
Bugfixes 🐛
1.12.26
Improvements 🔧
Bugfixes 🐛
is_subclass_ofandis_a(#3788),#3979,#8464, thanks@VincentLanglet!numeric-stringtoarray-key(#3326),#4163,#4671,#8592,#11390,#12413, thanks@VincentLanglet!callable-stringmust benon-empty-string(#3983),#12979, thanks@aivchen!Function signature fixes 🤖
1.12.25
Consider comparison as strict when type is the same (#3942),#12884, thanks@VincentLanglet!
1.12.24
Bugfixes 🐛
DateTime::format('u')return type (#3919), thanks@mvorisek!Function signature fixes 🤖
1.12.23
Fix condition of fall-through case not used for exhaustive checks (#3900),#11064,#3488,#8719,#12722, thanks@rvanvelzen!
1.12.22
Improvements 🔧
implode()return type (#3774), thanks@staabm!Bugfixes 🐛
[]on array with constant-integer offset will add one to the offset (phpstan/phpstan-src@fe595cb),#9328,#9850,#106501.12.21
Bugfixes 🐛
Function signature fixes 🤖
MongoCollection::findOne()return type (#3854), thanks@aivchen!1.12.20
Bugfixes 🐛
@varPHPDoc type fromType::toPhpDocNode()before reporting it as wrong (#3797),#12458,#11015,#10861,#11535, thanks@VincentLanglet!Internals 🔍
FileTypeMapper::getNameScope()(phpstan/phpstan-src@bca8902)1.12.19
Improvements 🔧
ClassReflection::hasMethod()method (#3825), thanks@canvural!Function signature fixes 🤖
MongoLog::setCallback()return type (#3829), thanks@aivchen!MongoCollection::save()return type (#3829), thanks@aivchen!1.12.18
Bugfixes 🐛
Function signature fixes 🤖
setproctitlefunction from the functionMap (phpstan/phpstan-src@f5627dc),#125731.12.17
If you're using
larastan/larastanPHPStan extension, please update to version 2.9.14 alongside PHPStan 1.12.17 for improved compatibility with the new genericstatic<...>type. Thank you.Improvements 🔧
static<...>(#1289),#12485,#11398,#10417,#9807,#9449,#8623,#5512, thanks@canvural!Bugfixes 🐛
Internals 🔍
1.12.16
Bugfixes 🐛
implode()(#3772),#11854, thanks@staabm!hash()return type (#3665), thanks@VincentLanglet!OpenSslEncryptParameterOutTypeExtension(#3753), thanks@paulbalandan!newfrom parent constructor - reject types that would fail bound check of the child class (phpstan/phpstan-src@d06f792),#12386Function signature fixes 🤖
stream_context_get_params(phpstan/phpstan-src@ff1feee),#11796Internals 🔍
instanceof ConstantScalarType(#3773), thanks@staabm!1.12.15
Bugfixes 🐛
newwith generic type with constructor in parent class (phpstan/phpstan-src@a063119),#8219,#2735array_merge(#3770),#7857,#8632,#9559, thanks@herndlm!Internals 🔍
instanceof ConstantBooleanTypechecks (#3771), thanks@staabm!1.12.14
Fix
preg_match()group containing start/end meta characters (#3740),#12297, thanks@staabm!1.12.13
Improvements 🔧
get_defined_vars()return type contains known variables (#3624),#11948,#11740, thanks@MartinMystikJonas!UnionType->isSuperTypeOfWithReason()(#3692,#3713), thanks@staabm!IntersectionType->getEnumCases()(#3695), thanks@staabm!MixedType::toArrayKey()returnsBenevolentUnionType(#3696)ClassAsClassConstantRule(#3697),#10859, thanks@paulbalandan!FunctionCallParametersCheck(#3734), thanks@staabm!MutatingScope::getNodeKey()(#3736), thanks@staabm!Bugfixes 🐛
iterator_to_arrayreturn type with generators (#3652), thanks@paulbalandan!#comments in regex withxmodifier (#3735,#3739),#12242, thanks@staabm!Function signature fixes 🤖
DOMDocument::create*()return types (#3737),#12278, thanks@staabm!Internals 🔍
RuleandRuleTestCase(#3698), thanks@paulbalandan!1.12.12
Improvements 🔧
uppercase-stringPHPDoc type (#3613), thanks@pmjones!Bugfixes 🐛
sprintfdynamic return type (#3640),#12065, thanks@VincentLanglet!staticreturn type in php-8-stubs (phpstan/phpstan-src@162f774),#12077non-empty-list(#3682),#12131, thanks@herndlm!Function signature fixes 🤖
Closure::bindandbindToreturn benevolent union with null (phpstan/phpstan-src@b049d8d)sha256function definition (#3664), thanks@VincentLanglet!1.12.11
Improvements 🔧
fidry/cpu-core-counter(#3632),#12026TypeCombinator::removeTruthy()method (#3633), thanks@canvural!$a != ''(#3304), thanks@thg2k!Bugfixes 🐛
self::in a class attribute argument (phpstan/phpstan-src@3447391),#12011,#10314nulltoarray_map(null, $a, $b)(#3562), thanks@schlndh!ArrayType<mixed, X>withcheckImplicitMixed(level 10 in 2.0) (#3636),#12051, thanks@VincentLanglet!Function signature fixes 🤖
extract()signature (#3512), thanks@VincentLanglet!get_defined_constants()(#3635), thanks@thg2k!fgetcsvacceptsnullfor$length(#3077), thanks@staabm!1.12.10
Bugfixes 🐛
forendless loop detection (#3622),#11992, thanks@herndlm!1.12.9
Improvements 🔧
@readonlyPHPDoc on the class as alternative to@immutable(#3523),#11775, thanks@herndlm!Bugfixes 🐛
forendless loops (#3573),#6807,#8463,#9374, thanks@herndlm!preg_matchgreater than0(#3612),#11293, thanks@staabm!voidreturn type in a union when the returned expr is originallyvoid(phpstan/phpstan-src@80c1df2),#11980@phpstan-ignorewith trait in the same file (phpstan/phpstan-src@381c137),#11981Internals 🔍
1.12.8
Improvements 🔧
Bugfixes 🐛
$thisin return type even in final classes (#3599),#11857, thanks@calebdw!E_DEPRECATEDfrom error_reporting (phpstan/phpstan-src@277e34b),#11937filterTypes()(#3535),#11663, thanks@VincentLanglet!Function signature fixes 🤖
Imagick::writeImage(s)Filesupportingformatparameter (#3588), thanks@kingjia90!Internals 🔍
instanceof ConstantBooleanTypein loop analysis (#3577),#11913, thanks@herndlm!@apito TypeExpr (#3601), thanks@ruudk!UnionType::filterTypes(#3607), thanks@VincentLanglet!1.12.7
Major new features 🚀
Improvements 🔧
-vvv) to very verbose (-vv) mode (#3345), thanks@janedbal!non-empty-arrayandnon-empty-listarray shape kind (phpstan/phpstan-src@107a7e3)Bugfixes 🐛
array_reverse()with optional keys (#3406),#11549, thanks@herndlm!Function signature fixes 🤖
get_defined_vars()(#3546), thanks@janedbal!getAttributesreturnslist(#3548), thanks@ManuelHu!Internals 🔍
PHPStan\dumpPhpDocType()(#3559),#11561, thanks@zonuexe!phpstan/phpstan-phpunit (Source:GitHub Releases))
1.4.2
1.4.1
phpstan/phpstan-strict-rules (Source:GitHub Releases))
1.6.2
strictRulesInstalledparameterpolluteScopeWithBlockto falseTask options
If you close the PR, the task will be skipped and Conductor will schedule the next task. Clicking the "Skip" button in the UI has the same effect. Conductor won't attempt to update the dependency to this exact version again but it will schedule updates to newer versions.
Powered byPrivate Packagist