Update all non-major dependencies (patch) - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
phpstan/phpstan | require-dev | patch |
1.9.2 -> 1.9.4
|
phpstan/phpstan-phpunit | require-dev | patch |
1.3.0 -> 1.3.2
|
phpstan/phpstan-symfony | require-dev | patch |
1.2.16 -> 1.2.18
|
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.
Release Notes
phpstan/phpstan
v1.9.4
🔧
Improvements - Various performance optimizations from @staabm (#2098, #2099, #2100, #2101, #2103, #2104)
- Resolve parameter types only when
checkArgumentTypes=true
(#2106), thanks @staabm! - Keep NeverType isExplicit flag in
TypeCombinator::intersect()
(#2112), thanks @staabm! - Keep NeverType isExplicit flag in
InitializerExprTypeResolver
(#2114), thanks @staabm! - Add
TypeCombinator::removeFalsey()
(#2003), thanks @axlon! - Option
usePathConstantsAsConstantString
(#2050), thanks @MartinMystikJonas!
🐛
Bugfixes - Fix native type on
unset
(#2107), #7805, thanks @rajyan! - Fix return type of
array_search()
with constant array type haystack (#1806), #3789, thanks @takaram! -
parse_str()
might return nested arrays by-ref (#1994), #8356, thanks @staabm! - Fix regression in
for
loop (https://github.com/phpstan/phpstan-src/commit/a8975b1800d6c5cb88a6af02e132b4e44e093fc3), #8520 - Fix readonly properties bugs and infinite recursion (https://github.com/phpstan/phpstan-src/commit/a7fed03bbf1bef545c8afcbf6c906ac93b34c876), #8543
- Fix internal error for dynamic properties defined on interface on PHP 8.2 (https://github.com/phpstan/phpstan-src/commit/4025209062e31619077197006ce44b5d60a9f2c1), #8537
🔍
Internals - Implement
getConstantStrings()
on Type (#1979), thanks @staabm! - Fix node PHPDoc type hints (#2053), thanks @herndlm!
- Refactor FilterVarDynamicReturnTypeExtension to pass around Types instead of Args and the Scope (#2109), thanks @herndlm!
v1.9.3
🔪
Bleeding edge - Fix invariance composition (#2054), thanks @jiripudil!
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
:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.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 - TypeInferenceTestCase - do not allow files with no asserts (#1992), #8346, #8094, thanks @herndlm!
-
DateTimeZone::__construct
throw type extension (#2034) - TableErrorFormatter: allow editor url title configuration (#2035), #7796, thanks @janedbal!
- Various generics variance fixes (#2051, #2064), #3960, thanks @jiripudil!
- Add
deprecationRulesInstalled
configuration (#2062), thanks @villfa!- To be used in phpstan-deprecation-rules and phpstan-phpunit extensions soon!
- ArrayFilterRule should care about
treatPhpDocTypesAsCertain
(#2065), thanks @VincentLanglet! - Discover phpunit-bridge automatically (https://github.com/phpstan/phpstan-src/commit/c760b1f7a45c512cd34c91d8e078046dfdc453ba)
- Performance optimizations:
- Cache descriptions in ObjectType and UnionType (https://github.com/phpstan/phpstan-src/commit/da8413c493cbb9d800228f996836207e9598920c), #8499, #8497
- Remove unnecessary file IO (#2069, #2094), thanks @staabm!
- Reduce calls to
Scope::getType()
. Cheap checks first. (#2071), thanks @staabm! - Cache resolved phpdoc in ClassReflection (#2072), thanks @staabm!
- Don't re-calculate node-key over and over again (#2073), thanks @staabm!
- Improve the CPU core count detection (#2047), thanks @theofidry!
- Optimize path related utils on windows (#2068), thanks @staabm!
- Don't re-calculate node-key over and over again - part 2 (#2074), #8503, thanks @staabm!
- Faster ConstantStringType->toArrayKey() (#2081), thanks @staabm!
- Faster ConstantFloatType->isSuperTypeOf(ConstantFloatType) (#2080), thanks @staabm!
- TypeSpecifier micro-optimization (https://github.com/phpstan/phpstan-src/commit/30e6d19496adb16b6bfd9be1cd1bf767f6ce8713)
- Faster TrinaryLogic->lazyExtremeIdentity() (#2083), thanks @staabm!
- Faster ConstantArrayType->isSuperTypeOf() (#2086), thanks @staabm!
- Loops analysed in linear time instead of exponential time (#2088, #2091), #8503, #6265
- Remove unnecessary method call to already known value (#2092), thanks @staabm!
🐛
Bugfixes - Improve conditionalExpressionTypes (#1950), #3677, #5623, #5401, #7292, #8212, thanks @rajyan!
- Fix conditional variable types in global scope (#1995), thanks @rajyan!
- Do not invalidate related expressions in ensureNonNullability (#2004), #8361, thanks @rajyan!
- Improve create conditional expressions to handle all expressions (#2007), thanks @rajyan!
- Improve conditional type resolving performance (#2030), #8397, #5805, thanks @rajyan!
- Fix false positive of access to static private property of parent class (#1989), #8333, thanks @staabm!
- Fix intersecting array shapes with different optional keys (#2002), #8373, thanks @rvanvelzen!
- Support PHPDoc asserts on variadic parameters (#2009), #8389, thanks @rvanvelzen!
- Fix
@param-out
on methods (#2028), #8421, thanks @staabm! - Do not set native type to
mixed
on annotation assignment (#2017), thanks @herndlm! - Consistently pass
$nativeExpressionTypes
in MutatingScope (#2021), thanks @herndlm! - Fix infinite loop when fully qualified callback is supplied (#2005), #8376, thanks @cs278!
- Non-static method DOMDocument::loadHTML() can be called statically (#2042), #2759, thanks @staabm!
- Fix FuzzyRelativePathHelper for directories ending in
.php
(https://github.com/phpstan/phpstan-src/commit/bff85e27cd486b7ea5c065575a71de66b83b1cf2), #8480
🤖
Function signature fixes - ImagickPixel::getColor() normalized param accepts int instead of bool (#2020), thanks @blankse!
- Declare more PDOStatement method types (#2096), thanks @staabm!
🔍
Internals - Fix non-working type assertions in
NodeScopeResolverTest
cases (#1992), thanks @herndlm! - Use ExpressionTypeHolders for conditional expression type (#1998), thanks @rajyan!
- Simplify array collections in
UnionTypeHelper
(#1988), thanks @herndlm! - Avoid specifying scalar types and delete string casts (#1999), thanks @rajyan!
- Add filename and line of the error of assertVariableCertainty (#2008), thanks @rajyan!
- README: how to composer install (#2025), thanks @janedbal!
- Group
$expressionTypes
and$nativeExpressionTypes
in Scope creation methods (#2022), thanks @herndlm! - Use ExpressionTypeHolder when comparing conditionals (#2048), thanks @rajyan!
- UnionType - carry information that it's normalized (https://github.com/phpstan/phpstan-src/commit/96e4443d94501012042cf6bd9f8d6b34af7fcfb6)
- VerbosityLevel offers
getLevelValue()
(https://github.com/phpstan/phpstan-src/commit/4f7e20b6ffae103ac3de52e5da1ef77dbc0ba485) - Get rid of
TypeTraverser
inArrayChunkFunctionReturnTypeExtension
(#2082), thanks @herndlm! - Get rid of
TypeTraverser
inArraySliceFunctionReturnTypeExtension
(#2085), thanks @herndlm! - Get rid of
TypeTraverser
inArrayReverseFunctionReturnTypeExtension
(#2084), thanks @herndlm! - Get rid of
TypeTraverser
inStrSplitFunctionReturnTypeExtension
(#2087), thanks @herndlm!
phpstan/phpstan-phpunit
v1.3.2
- cd9c693 - DataProviderDeclarationRule - report non-static dataProvider only with PHPUnit 10+
v1.3.1
phpstan/phpstan-symfony
v1.2.18
-
3178f15 - Revert "Remove nullable type after calling
HeaderBag::has
"
v1.2.17
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.