chore(deps): update dependency phpstan/phpstan to v2 #260

Closed
Renovate wants to merge 1 commits from renovate/phpstan-phpstan-2.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
phpstan/phpstan require-dev major ~1.12.18 -> ~2.1.5

Release Notes

phpstan/phpstan (phpstan/phpstan)

v2.1.5

Compare Source

Improvements 🔧

Bugfixes 🐛

v2.1.4

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

v2.1.3

Compare Source

If you're using larastan/larastan PHPStan extension, please update to version 3.0.4 alongside PHPStan 2.1.3 for improved compatibility with the new generic static<...> type. Thank you.

This release includes fixes and improvements from PHPStan 1.12.17. Most impportantly it introduces GenericStaticType - support for static<...> (#​1289), #​12485, #​11398, #​10417, #​9807, #​9449, #​8623, #​5512

Improvements 🔧

Bugfixes 🐛

  • Do not check abstract properties as uninitialized (1cc534759f), #​12466
  • Properties might be covariant or contravariant, depending on the allowed operations on the parent (50f8e49121), #​12466
  • Enable usage of ReflectionClass::isSubclassOf() with invariant @template T (4f2af3bcdf), #​12473
  • Fix crash on unknown trait use: array_combine() args must have the same number of elements (36f3291bd5), #​12327

Function signature fixes 🤖

Internals 🔍

v2.1.2

Compare Source

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

  • Pass ExtendedMethodReflection into AlwaysUsedMethodExtension (5d35811a87)
  • Remove private method ConstantArrayType::findTypeAndMethodNames() used only once (30b9cd86c5)

v2.1.1

Compare Source

Improvements 🔧

Bugfixes 🐛

Internals 🔍

  • Update PHP-Parser and BetterReflection (#​3767)
    • Simplify code thanks to PHP-Parser update
    • Simplify code thanks to BetterReflection update
    • PropertyHookReturnStatementsNode is invoked for short body hooks
    • ShortGetPropertyHookReturnTypeRule is no longer needed
    • PropertyHookNameVisitor is no longer needed, PHP-parser comes with propertyName attribute

v2.1.0

Compare Source

Read all about this release on PHPStan's blog!

Major new features 🚀

  • Support for PHP 8.4's property hooks (RFC)
  • Support for PHP 8.4's asymmetric visibility (RFC)
  • Support for PHP 8.4's #[Deprecated] attribute (RFC)

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:

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 🔧

Bugfixes 🐛

Internals 🔍

  • Attributes rules use In*Node virtual nodes for more precise Scope 90e48fa876)
  • Remove duplicated PHPDoc from InternalScopeFactory classes (#​3761), thanks @​herndlm!
  • Scope: use Scope::getConstant instead (#​3666), thanks @​staabm!

v2.0.4

Compare Source

This release includes improvements and fixes from PHPStan 1.12.13.

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

  • Workaround for bug in slevomat/coding-standard TypeNameMatchesFileName (7b4c9afd09)
  • Remove incorrect doc leftover from 1.x (#​3732), thanks @​AJenbo!

v2.0.3

Compare Source

This release includes improvements and fixes from PHPStan 1.12.12.

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:

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 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

v2.0.2

Compare Source

Improvements 🔧

Internals 🔍

v2.0.1

Compare Source

Bugfixes 🐛

v2.0.0

Compare Source

PHPStan 2.0

Read more about PHPStan 2.0.

Check out the UPGRADING guide!.

Buy the PHPStan elephpant and T-shirts!

Design 2

Major new features 🚀

Improvements 🔧

Bugfixes 🐛

Function signature fixes 🤖

Internals 🔍

  • Tool to make optional parameters required across the codebase (7e366e08f9)
  • A few more MutatingScope method parameters made required (2c4c0cde75)
  • CommandHelper::begin() parameters made required (f17cf9ec43)
  • MethodTag - constructor parameter $templateTags is required (5b58f83e6d)
  • InitializerExprTypeResolver - constructor parameter $usePathConstantsAsConstantString made required (f88d9ba7f5)
  • PhpMethodReflectionFactory::create() - all parameters are required (8bfbf8f254)
  • FunctionCallParametersCheck - parameters $nodeType and $acceptsNamedArguments made required (493752737c)
  • MethodParameterComparisonHelper - parameter $ignorable of compare() method made required (f85a500288)
  • Parameter $dateTimeClass of DateTimeModifyReturnTypeExtension constructor made required (a8cd423e84)
  • NativeFunctionReflection construct parameters made required (64ff598cd4)
  • Cover AccessoryArrayListType constructor with BC promise (51de9032c6)
  • Add PhpVersion parameter to various Type methods (#​3478), thanks @​VincentLanglet!
  • Move ContainerDynamicReturnTypeExtension to build/PHPStan (5651bec661)
  • Renamed NewOptimizedDirectorySourceLocator to OptimizedDirectorySourceLocator (db02a30ca1)
  • Remove unneded abstraction (f302c90692)
  • Introduce native return types thanks to PHP 7.4 return type covariance (392f090066)
  • ReadWritePropertiesExtension - use ExtendedPropertyReflection in parameter type (f0a629685d)
  • Declare more precise getClass() return types in extension interfaces (#​1754), thanks @​staabm!
  • (38cb5a315e)
  • HasOffsetType - put constructor parameter type natively (b5accb3f6b)
  • Printer is covered by BC promise (b0858332ef)
  • More interfaces that are not supposed to be implemented in userland (778af2ed74, cb6ab5544a)
  • Refactored FunctionCallParametersCheck::check() parameters (710e09c416)
  • Spread list usages in Reflection, Scope, Type (#​3530), thanks @​janedbal!
  • Remove $isFinal dead-code in PhpFunctionReflection (#​3545), thanks @​staabm!
  • Get rid of unnecessary instanceof self in ConstantArrayType (#​3552), thanks @​herndlm!
  • test: use bashunit -a exit_code to check for errors (#​3533), thanks @​Chemaclass!
  • Upgrade bashunit:0.18.0 for e2e tests (#​3614), thanks @​Chemaclass!
  • Remove dead code (#​3575), thanks @​staabm!
  • Remove dead code in ConstantConditionRuleHelper (#​3597), thanks @​staabm!

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [phpstan/phpstan](https://github.com/phpstan/phpstan) | require-dev | major | `~1.12.18` -> `~2.1.5` | --- ### Release Notes <details> <summary>phpstan/phpstan (phpstan/phpstan)</summary> ### [`v2.1.5`](https://github.com/phpstan/phpstan/releases/tag/2.1.5) [Compare Source](https://github.com/phpstan/phpstan/compare/2.1.4...2.1.5) # Improvements 🔧 - Hooked property cannot be static ([#&#8203;3810](https://github.com/phpstan/phpstan-src/pull/3810)), [#&#8203;12336](https://github.com/phpstan/phpstan/issues/12336), thanks [@&#8203;jakubtobiasz](https://github.com/jakubtobiasz)! - Array shape from general array with single finite key (https://github.com/phpstan/phpstan-src/commit/6c45175093157f773725e70e4dd3c4f316027f67, https://github.com/phpstan/phpstan-src/commit/8a5bfb9208891055ecff4a39586d542b70546f82) - Allows `array<value-of<MyEnum::FIRST>, X>` to create an array shape where the key is backed enum case value - Update phpdoc-parser (https://github.com/phpstan/phpstan-src/commit/d25a815b1069174acf3efe97812617d679f30769) - TypeParser: Allow multiple newlines and also allow multiline union and intersection types for array shapes (https://github.com/phpstan/phpdoc-parser/pull/263), https://github.com/phpstan/phpdoc-parser/issues/258, https://github.com/phpstan/phpdoc-parser/issues/183, thanks [@&#8203;DaDeather](https://github.com/DaDeather)! # Bugfixes 🐛 - This release includes fixes from [PHPStan 1.12.18](https://github.com/phpstan/phpstan/releases/tag/1.12.18) - Fix `GenericStaticType` in `@phpstan-self-out`, use `@phpstan-self-out` type when returning `$this` (https://github.com/phpstan/phpstan-src/commit/dab99cba7be39fb71c70e42373ff40dca64b82ad), [#&#8203;12575](https://github.com/phpstan/phpstan/issues/12575), [#&#8203;12548](https://github.com/phpstan/phpstan/issues/12548), [#&#8203;8439](https://github.com/phpstan/phpstan/issues/8439), [#&#8203;8316](https://github.com/phpstan/phpstan/issues/8316), [#&#8203;8275](https://github.com/phpstan/phpstan/issues/8275) - Fix `@phpstan-self-out` with GenericStaticType when method is called on `$this` (https://github.com/phpstan/phpstan-src/commit/cf6476188b73036741e916e1e3e58972b53bb8b3) - Update BetterReflection ([#&#8203;3822](https://github.com/phpstan/phpstan-src/pull/3822)) - Fixed property from interface implemented by trait (https://github.com/Roave/BetterReflection/pull/1487), [#&#8203;12553](https://github.com/phpstan/phpstan/issues/12553), thanks [@&#8203;kukulich](https://github.com/kukulich)! - Readonly property can override get-only property declared in interface (https://github.com/phpstan/phpstan-src/commit/0c8e9d2905371039cf453509e044d367529aa2b9), [#&#8203;12586](https://github.com/phpstan/phpstan/issues/12586) ### [`v2.1.4`](https://github.com/phpstan/phpstan/releases/tag/2.1.4) [Compare Source](https://github.com/phpstan/phpstan/compare/2.1.3...2.1.4) # Improvements 🔧 - PHP 8.4: Prevent setting a default value for a virtual property ([#&#8203;3812](https://github.com/phpstan/phpstan-src/pull/3812)), [#&#8203;12336](https://github.com/phpstan/phpstan/issues/12336), thanks [@&#8203;jakubtobiasz](https://github.com/jakubtobiasz)! # Bugfixes 🐛 - PHP 8 stubs: Put built-in PHP enums in classes map instead of functions map, [#&#8203;12549](https://github.com/phpstan/phpstan/issues/12549), [#&#8203;12546](https://github.com/phpstan/phpstan/issues/12546) - https://github.com/phpstan/php-8-stubs/commit/3816597f86f912a2f9c34f70b3d9d0baf9053304 - https://github.com/phpstan/php-8-stubs/commit/97d994e9f3bc539ccabf2392a6e478cdf25a7940 - https://github.com/phpstan/phpstan-src/pull/3813 - https://github.com/phpstan/phpstan-src/commit/ad610cf827fa1025615ab8870dfb61b625ffbcf2 - Virtual property cannot be uninitialized (https://github.com/phpstan/phpstan-src/commit/b82230a48267ef3d55c568a707a5560b30ccea20), [#&#8203;12547](https://github.com/phpstan/phpstan/issues/12547) - Do not report invoking an aliased trait method by its original name as an error, [#&#8203;12544](https://github.com/phpstan/phpstan/issues/12544) - https://github.com/Roave/BetterReflection/pull/1485, thanks [@&#8203;kukulich](https://github.com/kukulich)! - [#&#8203;3814](https://github.com/phpstan/phpstan-src/pull/3814) - https://github.com/phpstan/phpstan-src/commit/e664bed7b62e2a58d571fb631ddf47030914a2b5 # Function signature fixes 🤖 - Add `false` to all `trader_*` functions return type ([#&#8203;3815](https://github.com/phpstan/phpstan-src/pull/3815)), thanks [@&#8203;rabol](https://github.com/rabol)! ### [`v2.1.3`](https://github.com/phpstan/phpstan/releases/tag/2.1.3) [Compare Source](https://github.com/phpstan/phpstan/compare/2.1.2...2.1.3) **If you're using `larastan/larastan` PHPStan extension, please update to version 3.0.4 alongside PHPStan 2.1.3 for improved compatibility with the new generic `static<...>` type. Thank you.** This release includes fixes and improvements from [PHPStan 1.12.17](https://github.com/phpstan/phpstan/releases/tag/1.12.17). Most impportantly it introduces GenericStaticType - support for `static<...>` ([#&#8203;1289](https://github.com/phpstan/phpstan-src/pull/1289)), [#&#8203;12485](https://github.com/phpstan/phpstan/issues/12485), [#&#8203;11398](https://github.com/phpstan/phpstan/issues/11398), [#&#8203;10417](https://github.com/phpstan/phpstan/issues/10417), [#&#8203;9807](https://github.com/phpstan/phpstan/issues/9807), [#&#8203;9449](https://github.com/phpstan/phpstan/issues/9449), [#&#8203;8623](https://github.com/phpstan/phpstan/issues/8623), [#&#8203;5512](https://github.com/phpstan/phpstan/issues/5512) # Improvements 🔧 - Look for overriden property prototype in implemented interfaces (https://github.com/phpstan/phpstan-src/commit/b3ca610fb4ae14d46da6f14d77499b35195ae40d) - AttributeReflection for easy attributes reading (https://github.com/phpstan/phpstan-src/commit/a387fa32788fd38bc35313558f6e6a46fc2c451c), [#&#8203;10443](https://github.com/phpstan/phpstan/issues/10443), [#&#8203;9618](https://github.com/phpstan/phpstan/issues/9618) - You can now call `->getAttributes()` on any thinkable reflection object, including `$scope->getFunction()` and you'll get a new PHPStan's AttributeReflection class: https://apiref.phpstan.org/2.1.x/PHPStan.Reflection.AttributeReflection.html - See https://github.com/phpstan/phpstan/discussions/12510 - Prevent declaring hooked properties as readonly ([#&#8203;3803](https://github.com/phpstan/phpstan-src/pull/3803)), [#&#8203;12525](https://github.com/phpstan/phpstan/issues/12525), thanks [@&#8203;jakubtobiasz](https://github.com/jakubtobiasz)! - Improved support for enum-string types ([#&#8203;3807](https://github.com/phpstan/phpstan-src/pull/3807)), thanks [@&#8203;zonuexe](https://github.com/zonuexe)! # Bugfixes 🐛 - Do not check abstract properties as uninitialized (https://github.com/phpstan/phpstan-src/commit/1cc534759f1cbb5ae05f2e3057d0f487a572aa12), [#&#8203;12466](https://github.com/phpstan/phpstan/issues/12466) - Properties might be covariant or contravariant, depending on the allowed operations on the parent (https://github.com/phpstan/phpstan-src/commit/50f8e491212197ca317b169e5c67978215ef4a0f), [#&#8203;12466](https://github.com/phpstan/phpstan/issues/12466) - Enable usage of `ReflectionClass::isSubclassOf()` with invariant `@template T` (https://github.com/phpstan/phpstan-src/commit/4f2af3bcdfec8699598303ee7a9bf49b4938a0ba), [#&#8203;12473](https://github.com/phpstan/phpstan/issues/12473) - Fix crash on unknown trait use: `array_combine()` args must have the same number of elements (https://github.com/ondrejmirtes/BetterReflection/commit/36f3291bd53f057a50613a99cbd805464723a94b), [#&#8203;12327](https://github.com/phpstan/phpstan/issues/12327) # Function signature fixes 🤖 - fix ext-amqp signatures ([#&#8203;3793](https://github.com/phpstan/phpstan-src/pull/3793)), [#&#8203;12469](https://github.com/phpstan/phpstan/issues/12469), [#&#8203;12461](https://github.com/phpstan/phpstan/issues/12461), thanks [@&#8203;esler](https://github.com/esler)! - `Imagick::getConfigureOptions()` returns array instead of string ([#&#8203;3801](https://github.com/phpstan/phpstan-src/pull/3801)), thanks [@&#8203;blankse](https://github.com/blankse)! # Internals 🔍 - Issue bot - skip `phpstanPlayground.configParameter` errors (https://github.com/phpstan/phpstan-src/commit/71d032761916517f18932bdee69c9468d8e83c84) - Cleanup (https://github.com/phpstan/phpstan-src/commit/0b28f6001b4d308e9fbfe3cb7feff6c259f47cc2) - Add a test covering a hooked property in a readonly class ([#&#8203;3809](https://github.com/phpstan/phpstan-src/pull/3809)), thanks [@&#8203;jakubtobiasz](https://github.com/jakubtobiasz)! ### [`v2.1.2`](https://github.com/phpstan/phpstan/releases/tag/2.1.2) [Compare Source](https://github.com/phpstan/phpstan/compare/2.1.1...2.1.2) # Improvements 🔧 - Add support for result cache meta extensions ([#&#8203;3765](https://github.com/phpstan/phpstan-src/pull/3765)), https://github.com/phpstan/phpstan-symfony/issues/255, thanks [@&#8203;Wirone](https://github.com/Wirone)! - See the docs: https://phpstan.org/developing-extensions/result-cache-meta-extensions - Overwrite property expression type only if it's subtype of the native type (https://github.com/phpstan/phpstan-src/commit/eb0e0bcfe2e4947d06c5eb680f5cf568a688ff4a, https://github.com/phpstan/phpstan-src/commit/bed30a79f4ed17651c48c031b89b60d4ce7453b2), [#&#8203;12438](https://github.com/phpstan/phpstan/issues/12438), [#&#8203;12393](https://github.com/phpstan/phpstan/issues/12393) - Enabling constructor check for class-string variables ([#&#8203;3661](https://github.com/phpstan/phpstan-src/pull/3661)), thanks [@&#8203;sayuprc](https://github.com/sayuprc)! - PHP 8.4: ReflectionClass stub with lazy object methods (https://github.com/phpstan/phpstan-src/commit/25ec5eb2db6474f95a0b9dcac1cca8210ea1a021), [#&#8203;12435](https://github.com/phpstan/phpstan/issues/12435) - RFC: https://wiki.php.net/rfc/lazy-objects # Bugfixes 🐛 - This release includes fixes from [PHPStan 1.12.16](https://github.com/phpstan/phpstan/releases/tag/1.12.16) - BooleanType - implement getConstantScalarTypes ([#&#8203;3781](https://github.com/phpstan/phpstan-src/pull/3781)), thanks [@&#8203;staabm](https://github.com/staabm)! # Function signature fixes 🤖 - shell_exec - add `false` to the return type ([#&#8203;3730](https://github.com/phpstan/phpstan-src/pull/3730)), thanks [@&#8203;sreichel](https://github.com/sreichel)! - Fix `samesite` cookie argument precision (https://github.com/phpstan/phpstan-src/commit/a54cdb0675e23385adba9d1b2b9e643994fa20d7) # Internals 🔍 - Pass ExtendedMethodReflection into AlwaysUsedMethodExtension (https://github.com/phpstan/phpstan-src/commit/5d35811a87a85aeaac6a16824391a948c9a62335) - Remove private method `ConstantArrayType::findTypeAndMethodNames()` used only once (https://github.com/phpstan/phpstan-src/commit/30b9cd86c523b59739b609dc4e325d3275d71188) ### [`v2.1.1`](https://github.com/phpstan/phpstan/releases/tag/2.1.1) [Compare Source](https://github.com/phpstan/phpstan/compare/2.1.0...2.1.1) # Improvements 🔧 - Introduce `getNextStatements` in UnreachableStatementNode ([#&#8203;3745](https://github.com/phpstan/phpstan-src/pull/3745)), thanks [@&#8203;samsonasik](https://github.com/samsonasik)! - Improve loose comparison on string types ([#&#8203;3756](https://github.com/phpstan/phpstan-src/pull/3756)), thanks [@&#8203;staabm](https://github.com/staabm)! - Enforce safe constructor overrides with `@phpstan-consistent-constructor` ([#&#8203;3687](https://github.com/phpstan/phpstan-src/pull/3687)), [#&#8203;12137](https://github.com/phpstan/phpstan/issues/12137), thanks [@&#8203;herndlm](https://github.com/herndlm)! - Improve loose comparison on constant types ([#&#8203;3755](https://github.com/phpstan/phpstan-src/pull/3755)), thanks [@&#8203;staabm](https://github.com/staabm)! - Improve loose comparison on IntegerRange containing zero ([#&#8203;3764](https://github.com/phpstan/phpstan-src/pull/3764)), thanks [@&#8203;staabm](https://github.com/staabm)! - NodeScopeResolver: 10x faster constant array processing ([#&#8203;3769](https://github.com/phpstan/phpstan-src/pull/3769)), thanks [@&#8203;staabm](https://github.com/staabm)! - UninitializedPropertyRule should be always reported when `checkUninitializedProperties` is enabled (https://github.com/phpstan/phpstan-src/commit/ca86412b4c53af26c21ddb3dd01f3fe200f17b48) # Bugfixes 🐛 - This release includes fixes from [PHPStan 1.12.15](https://github.com/phpstan/phpstan/releases/tag/1.12.15) - GetNonVirtualPropertyHookReadRule - do not report if get hook is not present at all (https://github.com/phpstan/phpstan-src/commit/b614f70e0154010f74e36dc9264962facac8122e) - Support named arguments after unpacking on PHP 8.1+ ([#&#8203;3742](https://github.com/phpstan/phpstan-src/pull/3742)), [#&#8203;11418](https://github.com/phpstan/phpstan/issues/11418), [#&#8203;8046](https://github.com/phpstan/phpstan/issues/8046), thanks [@&#8203;herndlm](https://github.com/herndlm)! # Internals 🔍 - Update PHP-Parser and BetterReflection ([#&#8203;3767](https://github.com/phpstan/phpstan-src/pull/3767)) - Simplify code thanks to PHP-Parser update - Simplify code thanks to BetterReflection update - PropertyHookReturnStatementsNode is invoked for short body hooks - ShortGetPropertyHookReturnTypeRule is no longer needed - PropertyHookNameVisitor is no longer needed, PHP-parser comes with `propertyName` attribute ### [`v2.1.0`](https://github.com/phpstan/phpstan/releases/tag/2.1.0) [Compare Source](https://github.com/phpstan/phpstan/compare/2.0.4...2.1.0) [**Read all about this release on PHPStan's blog!**](https://phpstan.org/blog/phpstan-2-1-support-for-php-8-4-property-hooks-more) # Major new features 🚀 - Support for PHP 8.4's property hooks ([RFC](https://wiki.php.net/rfc/property-hooks)) - Support for PHP 8.4's asymmetric visibility ([RFC](https://wiki.php.net/rfc/asymmetric-visibility-v2)) - Support for PHP 8.4's `#[Deprecated]` attribute ([RFC](https://wiki.php.net/rfc/deprecated_attribute)) # Bleeding edge 🔪 - UnusedFunctionParametersCheck: report precise line ([#&#8203;3743](https://github.com/phpstan/phpstan-src/pull/3743)), thanks [@&#8203;janedbal](https://github.com/janedbal)! *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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements 🔧 - Readonly classes cannot be combined with `#[AllowDynamicProperties]` ([#&#8203;3738](https://github.com/phpstan/phpstan-src/pull/3738)), [#&#8203;12281](https://github.com/phpstan/phpstan/issues/12281), thanks [@&#8203;staabm](https://github.com/staabm)! - Check trait attributes ([#&#8203;3738](https://github.com/phpstan/phpstan-src/pull/3738)), thanks [@&#8203;staabm](https://github.com/staabm)! - Named argument detection is scope-PHP version dependent ([#&#8203;3662](https://github.com/phpstan/phpstan-src/pull/3662)), thanks [@&#8203;staabm](https://github.com/staabm)! - Improve loose comparison on integer ([#&#8203;3748](https://github.com/phpstan/phpstan-src/pull/3748)), [#&#8203;12317](https://github.com/phpstan/phpstan/issues/12317), [#&#8203;12312](https://github.com/phpstan/phpstan/issues/12312), thanks [@&#8203;staabm](https://github.com/staabm)! - Improve loose comparison on union type ([#&#8203;3750](https://github.com/phpstan/phpstan-src/pull/3750)), thanks [@&#8203;staabm](https://github.com/staabm)! - AccessStaticPropertiesRule - fixed blindspot about `parent::` (https://github.com/phpstan/phpstan-src/commit/41837b490b12e3c71b4ca50003690f2900f74876) # Bugfixes 🐛 - Fix `preg_match()` group containing start/end meta characters ([#&#8203;3740](https://github.com/phpstan/phpstan-src/pull/3740)), [#&#8203;12297](https://github.com/phpstan/phpstan/issues/12297), thanks [@&#8203;staabm](https://github.com/staabm)! # Internals 🔍 - Attributes rules use `In*Node` virtual nodes for more precise Scope https://github.com/phpstan/phpstan-src/commit/90e48fa876696f221874a2766c2bf3fc1bea0ec0) - Remove duplicated PHPDoc from InternalScopeFactory classes ([#&#8203;3761](https://github.com/phpstan/phpstan-src/pull/3761)), thanks [@&#8203;herndlm](https://github.com/herndlm)! - Scope: use `Scope::getConstant` instead ([#&#8203;3666](https://github.com/phpstan/phpstan-src/pull/3666)), thanks [@&#8203;staabm](https://github.com/staabm)! ### [`v2.0.4`](https://github.com/phpstan/phpstan/releases/tag/2.0.4) [Compare Source](https://github.com/phpstan/phpstan/compare/2.0.3...2.0.4) This release includes improvements and fixes from [PHPStan 1.12.13](https://github.com/phpstan/phpstan/releases/tag/1.12.13). # Improvements 🔧 - Added `strictRulesInstalled` parameter ([#&#8203;3729](https://github.com/phpstan/phpstan-src/pull/3729)), thanks [@&#8203;staabm](https://github.com/staabm)! - Will be used for https://github.com/phpstan/phpstan-phpunit/pull/216 # Bugfixes 🐛 - Skip param castable to X on non-arrays ([#&#8203;3694](https://github.com/phpstan/phpstan-src/pull/3694)), [#&#8203;12146](https://github.com/phpstan/phpstan/issues/12146), thanks [@&#8203;schlndh](https://github.com/schlndh)! - Remove incorrect CURLOPT_ACCEPT_ENCODING alias ([#&#8203;3703](https://github.com/phpstan/phpstan-src/pull/3703)), [#&#8203;12171](https://github.com/phpstan/phpstan/issues/12171), thanks [@&#8203;xPaw](https://github.com/xPaw)! - Fix `htmlspecialchars` and `htmlentities` being `non-empty-string` without ENT_SUBSTITUTE flag ([#&#8203;3710](https://github.com/phpstan/phpstan-src/pull/3710)), [#&#8203;12021](https://github.com/phpstan/phpstan/issues/12021), thanks [@&#8203;jack-worman](https://github.com/jack-worman)! # Function signature fixes 🤖 - Fix `fgetcsv` return type; never returns null ([#&#8203;3712](https://github.com/phpstan/phpstan-src/pull/3712)), thanks [@&#8203;janedbal](https://github.com/janedbal)! - Fix `apcu_cache_info` and `apcu_sma_info` signatures ([#&#8203;3726](https://github.com/phpstan/phpstan-src/pull/3726), https://github.com/phpstan/phpstan-src/commit/e7e80934023abc94a4f4bb9066ba6d6db26f6cde), thanks [@&#8203;vindic](https://github.com/vindic)! # Internals 🔍 - Workaround for bug in slevomat/coding-standard TypeNameMatchesFileName (https://github.com/phpstan/phpstan-src/commit/7b4c9afd090d89d595eb113831bc4b79b45d22e2) - Remove incorrect doc leftover from 1.x ([#&#8203;3732](https://github.com/phpstan/phpstan-src/pull/3732)), thanks [@&#8203;AJenbo](https://github.com/AJenbo)! ### [`v2.0.3`](https://github.com/phpstan/phpstan/releases/tag/2.0.3) [Compare Source](https://github.com/phpstan/phpstan/compare/2.0.2...2.0.3) This release includes improvements and fixes from [PHPStan 1.12.12](https://github.com/phpstan/phpstan/releases/tag/1.12.12). # Bleeding edge 🔪 - Check that values passed to array_sum/product are castable to number (level 5) ([#&#8203;3658](https://github.com/phpstan/phpstan-src/pull/3658)), [#&#8203;11883](https://github.com/phpstan/phpstan/issues/11883), thanks [@&#8203;schlndh](https://github.com/schlndh)! *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](https://phpstan.org/blog/what-is-bleeding-edge)* # Improvements 🔧 - Update BetterReflection with https://github.com/Roave/BetterReflection/pull/1462, thanks [@&#8203;kukulich](https://github.com/kukulich)! - Sanity checks around hooked properties in interfaces and classes ([#&#8203;3656](https://github.com/phpstan/phpstan-src/pull/3656)), thanks [@&#8203;jakubtobiasz](https://github.com/jakubtobiasz)! - Full support for PHP 8.4 is coming soon in PHPStan 2.1 # Bugfixes 🐛 - Fix subtracting enums inside `in_array` ([#&#8203;3646](https://github.com/phpstan/phpstan-src/pull/3646)), [#&#8203;12083](https://github.com/phpstan/phpstan/issues/12083), thanks [@&#8203;janedbal](https://github.com/janedbal)! - Last value was not recognized when passing an associative array as an argument ([#&#8203;3668](https://github.com/phpstan/phpstan-src/pull/3668)), [#&#8203;11815](https://github.com/phpstan/phpstan/issues/11815), thanks [@&#8203;sayuprc](https://github.com/sayuprc)! - Update PhpStorm stubs ([#&#8203;3683](https://github.com/phpstan/phpstan-src/pull/3683)), [#&#8203;12132](https://github.com/phpstan/phpstan/issues/12132) # Function signature fixes 🤖 - 3rd parameter of htmlentities and htmlspecialchars allows null ([#&#8203;3644](https://github.com/phpstan/phpstan-src/pull/3644)), thanks [@&#8203;sreichel](https://github.com/sreichel)! - Update curl_setopt string values and allow nullable ([#&#8203;3634](https://github.com/phpstan/phpstan-src/pull/3634)), thanks [@&#8203;xPaw](https://github.com/xPaw)!\* bccomp: more precise return type ([#&#8203;3647](https://github.com/phpstan/phpstan-src/pull/3647)), thanks [@&#8203;claudepache](https://github.com/claudepache)! # Internals 🔍 - FunctionCallParametersCheck: Add native parameter type ([#&#8203;3641](https://github.com/phpstan/phpstan-src/pull/3641)), thanks [@&#8203;staabm](https://github.com/staabm)! - Refactor TryRemove/Accepts for DateTime|DateTimeImmutable and Exception|Error ([#&#8203;3654](https://github.com/phpstan/phpstan-src/pull/3654)), thanks [@&#8203;VincentLanglet](https://github.com/VincentLanglet)! - Implement `Scope::getPhpVersion()` ([#&#8203;3642](https://github.com/phpstan/phpstan-src/pull/3642)), thanks [@&#8203;staabm](https://github.com/staabm)! - Non-capturing catch support detection is scope PHP-version dependent ([#&#8203;3663](https://github.com/phpstan/phpstan-src/pull/3663)), [#&#8203;12114](https://github.com/phpstan/phpstan/issues/12114), thanks [@&#8203;staabm](https://github.com/staabm)! - Remove shortArraySyntax definition in `Printer::__construct()` ([#&#8203;3680](https://github.com/phpstan/phpstan-src/pull/3680)), thanks [@&#8203;samsonasik](https://github.com/samsonasik)! ### [`v2.0.2`](https://github.com/phpstan/phpstan/releases/tag/2.0.2) [Compare Source](https://github.com/phpstan/phpstan/compare/2.0.1...2.0.2) # Improvements 🔧 - More details about PHP version information in `diagnose` command ([#&#8203;3609](https://github.com/phpstan/phpstan-src/pull/3609)), thanks [@&#8203;staabm](https://github.com/staabm)! - Utilize `phpVersion.min` and `max` in VersionCompareFunctionDynamicReturnTypeExtension ([#&#8203;3631](https://github.com/phpstan/phpstan-src/pull/3631)), thanks [@&#8203;staabm](https://github.com/staabm)! - Improvements and fixes from [PHPStan 1.12.11](https://github.com/phpstan/phpstan/releases/tag/1.12.11) # Internals 🔍 - Refactor ComposerPhpVersionFactory, ConstantResolver ([#&#8203;3627](https://github.com/phpstan/phpstan-src/pull/3627)), thanks [@&#8203;staabm](https://github.com/staabm)! ### [`v2.0.1`](https://github.com/phpstan/phpstan/releases/tag/2.0.1) [Compare Source](https://github.com/phpstan/phpstan/compare/2.0.0...2.0.1) # Bugfixes 🐛 - fix: check for existence of second arg in CountCharsFunctionDynamicReturnTypeExtension ([#&#8203;3620](https://github.com/phpstan/phpstan-src/pull/3620)), thanks [@&#8203;canvural](https://github.com/canvural)! - Fix resolving tentative return type (https://github.com/phpstan/phpstan-src/commit/753fc4d98fe8929aa8816f454d2f9a836ccd7a6b) - And [fixes from PHPStan 1.12.10](https://github.com/phpstan/phpstan/releases/tag/1.12.10) ### [`v2.0.0`](https://github.com/phpstan/phpstan/releases/tag/2.0.0) [Compare Source](https://github.com/phpstan/phpstan/compare/1.12.18...2.0.0) [![PHPStan 2.0](https://github.com/user-attachments/assets/c5b757b4-e7c2-4029-b472-13567d2967c2)](https://phpstan.org/blog/phpstan-2-0-released-level-10-elephpants) [**Read more about PHPStan 2.0.**](https://phpstan.org/blog/phpstan-2-0-released-level-10-elephpants) Check out the [**UPGRADING guide**](https://github.com/phpstan/phpstan/blob/2.0.x/UPGRADING.md)!. [**Buy the PHPStan elephpant and T-shirts!**](https://phpstan.org/merch) [![Design 2](https://github.com/user-attachments/assets/a878365f-2a4e-4ba2-86e0-bbeba6eff9ab)](https://phpstan.org/merch) # Major new features 🚀 - **Level 10** - level 9 on steroids, treats all `mixed` types strictly, not just explicit `mixed` - **Array `list` type** ([#&#8203;1751](https://github.com/phpstan/phpstan-src/pull/1751)), [#&#8203;3311](https://github.com/phpstan/phpstan/issues/3311), [#&#8203;8185](https://github.com/phpstan/phpstan/issues/8185), [#&#8203;6243](https://github.com/phpstan/phpstan/issues/6243), thanks [@&#8203;rvanvelzen](https://github.com/rvanvelzen)! - Lists are arrays with sequential integer keys starting at 0 - **Lower memory consumption** thanks to breaking up of reference cycles - [Learn more »](https://phpstan.org/blog/preprocessing-ast-for-custom-rules) - In testing the memory consumption was reduced by 50–70 %. - **Enhancements in handling parameters passed by reference** - [Learn more on phpstan.org](https://phpstan.org/blog/enhancements-in-handling-parameters-passed-by-reference) - [#&#8203;2941](https://github.com/phpstan/phpstan-src/pull/2941), thanks [@&#8203;ljmaskey](https://github.com/ljmaskey)! - New rules (level 0): - MagicConstantContextRule ([#&#8203;2741](https://github.com/phpstan/phpstan-src/pull/2741)), [#&#8203;10099](https://github.com/phpstan/phpstan/issues/10099), thanks [@&#8203;staabm](https://github.com/staabm)! - MissingMagicSerializationMethodsRule ([#&#8203;1711](https://github.com/phpstan/phpstan-src/pull/1711)), [#&#8203;7482](https://github.com/phpstan/phpstan/issues/7482), thanks [@&#8203;staabm](https://github.com/staabm)! - Check vprintf/vsprintf arguments against placeholder count ([#&#8203;3126](https://github.com/phpstan/phpstan-src/pull/3126)), thanks [@&#8203;staabm](https://github.com/staabm)! - Check if required file exists ([#&#8203;3294](https://github.com/phpstan/phpstan-src/pull/3294)), [#&#8203;3397](https://github.com/phpstan/phpstan/issues/3397), thanks [@&#8203;Bellangelo](https://github.com/Bellangelo)! - Add `@readonly` rule that disallows default values ([#&#8203;1391](https://github.com/phpstan/phpstan-src/pull/1391)), thanks [@&#8203;herndlm](https://github.com/herndlm)! - Rule about `@phpstan-consistent-constructor` ([#&#8203;1296](https://github.com/phpstan/phpstan-src/pull/1296)), thanks [@&#8203;canvural](https://github.com/canvural)! - Check code in custom PHPStan extensions for runtime reflection concepts like `is_a()` or `class_parents()` (https://github.com/phpstan/phpstan-src/commit/c4a662ac6c3ec63f063238880b243b5399c34fcc) - Check code in custom PHPStan extensions for runtime reflection concepts like `new ReflectionMethod()` (https://github.com/phpstan/phpstan-src/commit/536306611cbb5877b6565755cd07b87f9ccfdf08) - ApiInstanceofRule - Report `instanceof` of classes not covered by backward compatibility promise (https://github.com/phpstan/phpstan-src/commit/ff4d02d62a7a2e2c4d928d48d31d49246dba7139) - Report `instanceof` of classes covered by backward compatibility promise but where the assumption might change (https://github.com/phpstan/phpstan-src/commit/996bc69fa977aa64f601bd82b8a0ae39be0cbeef) - Check that PHPStan class in class constant fetch is covered by backward compatibility promise (https://github.com/phpstan/phpstan-src/commit/9e007251ce61788f6a0319a53f1de6cf801ed233) - Previously absent type checks: - Check existing classes in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/6838669976bf20232abde36ecdd52b1770fa50c9) - Check nonexistent classes in local type aliases (https://github.com/phpstan/phpstan-src/commit/2485b2e9c129e789ec3b2d7db81ca30f87c63911) - Check unresolvable types in local type aliases (https://github.com/phpstan/phpstan-src/commit/5f7d12b2fb2809525ab0e96eeae95093204ea4d3) - Check generics in local type aliases (https://github.com/phpstan/phpstan-src/commit/5a2d4416d94ab77a2a2e7e1bfaba4c5ed2a13c25) - Check existing classes in `@param-out` (https://github.com/phpstan/phpstan-src/commit/30c4b9e80f51af8b5f166ba3aae93d8409c9c0ea), [#&#8203;10260](https://github.com/phpstan/phpstan/issues/10260) - Check existing classes in `@param-closure-this` (https://github.com/phpstan/phpstan-src/commit/2fa539a39e06bcc3155b109fd8d246703ceb176d), [#&#8203;10933](https://github.com/phpstan/phpstan/issues/10933) - New rules (level 2): - **Validate inline PHPDoc `@var` tag** type against native type (https://github.com/phpstan/phpstan-src/commit/a69e3bc2f1e87f6da1e65d7935f1cc36bd5c42fe) - Set [`reportWrongPhpDocTypeInVarTag`](https://phpstan.org/config-reference#reportwrongphpdoctypeinvartag) to `true` to have all types validated, not just native ones - Use config option `reportAnyTypeWideningInVarTag: true` for stricter behaviour ([#&#8203;2840](https://github.com/phpstan/phpstan-src/pull/2840)), thanks [@&#8203;janedbal](https://github.com/janedbal)! - IncompatibleDefaultParameterTypeRule for closures (https://github.com/phpstan/phpstan-src/commit/0264f5bc48448c7e02a23b82eef4177d0617a82f) - Checking truthiness of `@phpstan-pure` above functions and methods - Check variance of template types in properties ([#&#8203;2314](https://github.com/phpstan/phpstan-src/pull/2314)), thanks [@&#8203;jiripudil](https://github.com/jiripudil)! - Report narrowing `PHPStan\Type\Type` interface via `@var` (https://github.com/phpstan/phpstan-src/commit/713b98fb107213c28e3d8c8b4b43c5f5fc47c144), https://github.com/nunomaduro/larastan/issues/1567#issuecomment-1460445389 - Previously absent type checks: - Check `@mixin` PHPDoc tag above traits (https://github.com/phpstan/phpstan-src/commit/0d0de946900adf4eb3c799b1b547567536e23147) - Check `@extends`, `@implements`, `@use` for unresolvable types (https://github.com/phpstan/phpstan-src/commit/2bb528233edb75312614166e282776f279cf2018), [#&#8203;11552](https://github.com/phpstan/phpstan/issues/11552) - Check types in `@method` tags (https://github.com/phpstan/phpstan-src/commit/5b7e474680eaf33874b7ed6a227677adcbed9ca5) - Check generics `@method` `@template` tags above traits (https://github.com/phpstan/phpstan-src/commit/aadbf62d3ae4517fc7a212b07130bedcef8d13ac) - Check types in `@property` tags (https://github.com/phpstan/phpstan-src/commit/55ea2ae516df22a071ab873fdd6f748a3af0520e), [#&#8203;10752](https://github.com/phpstan/phpstan/issues/10752), [#&#8203;9356](https://github.com/phpstan/phpstan/issues/9356) - New rule (level 3): - ArrayUnpackingRule ([#&#8203;856](https://github.com/phpstan/phpstan-src/pull/856)), thanks [@&#8203;canvural](https://github.com/canvural)! - New rules (level 4): - Check too wide private property type (https://github.com/phpstan/phpstan-src/commit/7453f4f75fae3d635063589467842aae29d88b54) - LogicalXorConstantConditionRule (https://github.com/phpstan/phpstan-src/commit/3a12724fd636b1bcf36c22b36e8f765d97150895, https://github.com/phpstan/phpstan-src/commit/3b011f6524254dad0f16840fdcfdbe7421548617), [#&#8203;7539](https://github.com/phpstan/phpstan/issues/7539) - Check that each trait is used and analysed at least once (https://github.com/phpstan/phpstan-src/commit/c4d05276fb8605d6ac20acbe1cc5df31cd6c10b0) - Report useless return values of function calls like `var_export` without `$return=true` ([#&#8203;3225](https://github.com/phpstan/phpstan-src/pull/3225)), [#&#8203;11320](https://github.com/phpstan/phpstan/issues/11320), thanks [@&#8203;staabm](https://github.com/staabm)! - ConstantLooseComparisonRule (https://github.com/phpstan/phpstan-src/commit/6ebf2361a3c831dd105a815521889428c295dc9f) - Check `new`/function call/method call/static method call on a separate line without any side effects even without `@phpstan-pure` PHPDoc tag on the declaration side - https://github.com/phpstan/phpstan-src/commit/281a87d1ab61809076ecfa6dfc2cc86e3babe235 - [#&#8203;3020](https://github.com/phpstan/phpstan-src/pull/3020), thanks [@&#8203;staabm](https://github.com/staabm)! - [#&#8203;3022](https://github.com/phpstan/phpstan-src/pull/3022), thanks [@&#8203;staabm](https://github.com/staabm)! - [#&#8203;3023](https://github.com/phpstan/phpstan-src/pull/3023), thanks [@&#8203;staabm](https://github.com/staabm)! - Always report always true conditions, except for last elseif and match arm (https://github.com/phpstan/phpstan-src/commit/565fb0f6da9cdc58e8686598015561a848693972) - Remove "unreachable branches" rules: UnreachableIfBranchesRule, UnreachableTernaryElseBranchRule, unreachable arm error in MatchExpressionRule - Because "always true" is always reported, these are no longer needed - New rules (level 5): - Check preg_quote delimiter sanity ([#&#8203;3252](https://github.com/phpstan/phpstan-src/pull/3252)), [#&#8203;11338](https://github.com/phpstan/phpstan/issues/11338), thanks [@&#8203;staabm](https://github.com/staabm)! - Rule for `call_user_func()` ([#&#8203;2479](https://github.com/phpstan/phpstan-src/pull/2479)), thanks [@&#8203;staabm](https://github.com/staabm)! - Report useless `array_filter()` calls ([#&#8203;1077](https://github.com/phpstan/phpstan-src/pull/1077)), [#&#8203;6840](https://github.com/phpstan/phpstan/issues/6840), thanks [@&#8203;leongersen](https://github.com/leongersen)! - Report useless `array_values()` calls ([#&#8203;2917](https://github.com/phpstan/phpstan-src/pull/2917)), thanks [@&#8203;kamil-zacek](https://github.com/kamil-zacek)! - Check array functions which require stringish values ([#&#8203;3132](https://github.com/phpstan/phpstan-src/pull/3132)), [#&#8203;11141](https://github.com/phpstan/phpstan/issues/11141), [#&#8203;5848](https://github.com/phpstan/phpstan/issues/5848), [#&#8203;3694](https://github.com/phpstan/phpstan/issues/3694), [#&#8203;11111](https://github.com/phpstan/phpstan/issues/11111), thanks [@&#8203;schlndh](https://github.com/schlndh)! - Check unresolvable parameters ([#&#8203;1319](https://github.com/phpstan/phpstan-src/pull/1319)), thanks [@&#8203;rvanvelzen](https://github.com/rvanvelzen)! - Enforce `@no-named-arguments` (https://github.com/phpstan/phpstan-src/commit/74ba8c23696948f2647d880df72f375346f41010), [#&#8203;5968](https://github.com/phpstan/phpstan/issues/5968) - New rules (level 6): - Previously absent type checks: - Check missing types in `@phpstan-self-out` (https://github.com/phpstan/phpstan-src/commit/892b319f25f04bc1b55c3d0063b607909612fe6d) - Check missing types in local type aliases (https://github.com/phpstan/phpstan-src/commit/ce7ffaf02d624a7fb9d38f8e5dffc9739f1233fc) - Check missing types in `@mixin` (https://github.com/phpstan/phpstan-src/commit/3175c81f26fd5bcb4a161b24e774921870ed2533) - New option: `polluteScopeWithBlock` (defaults to `true`, `false` in `phpstan-strict-rules`) (https://github.com/phpstan/phpstan-src/commit/946cf180c960930c2c42075d0f28ff9090507272) - Support `@readonly` property and `@immutable` class PHPDoc ([#&#8203;1295](https://github.com/phpstan/phpstan-src/pull/1295), [#&#8203;1335](https://github.com/phpstan/phpstan-src/pull/1335)), [#&#8203;4082](https://github.com/phpstan/phpstan/issues/4082), thanks [@&#8203;herndlm](https://github.com/herndlm)! - Deprecate various `instanceof *Type` in favour of new methods on `Type` interface, (https://github.com/phpstan/phpstan-src/commit/436e6d3015cbeba4645d38bc7a6a865b9c6d7c74), learn more: [Why Is instanceof \*Type Wrong and Getting Deprecated?](https://phpstan.org/blog/why-is-instanceof-type-wrong-and-getting-deprecated) # Improvements 🔧 - TableErrorFormatter - always output identifiers (https://github.com/phpstan/phpstan-src/commit/fc66c24113e9fe88c3155703224eb03768846fdd) - Config option `exceptions.check.tooWideThrowType` made true by default (https://github.com/phpstan/phpstan-src/commit/1b1da3e2ce3acf10dde03d9656638cda4f7389a4) - Use `implicitThrows` to only look for explicit throw points in too-wide `@throws` rules when set to `false` (https://github.com/phpstan/phpstan-src/commit/a0e688c1d1e4c5e82f989b26485eb9162f47aa97) - Rules about tooWideThrowType moved to level 4 (https://github.com/phpstan/phpstan-src/commit/d7798d7f2c47f426efe91c566e6cafd5a4e2410c) - Both .php and .neon baselines now include error identifiers (https://github.com/phpstan/phpstan-src/commit/f38addda2b151b6e41a746a37659c0bbe9e2293b, https://github.com/phpstan/phpstan-src/commit/c8b7ea9e8f51c8bbc38dfa6b04f9a0172f5cfea0) - PHPDoc parser: Require whitespace before description with limited start tokens (https://github.com/phpstan/phpdoc-parser/pull/128), https://github.com/phpstan/phpdoc-parser/issues/125, thanks [@&#8203;rvanvelzen](https://github.com/rvanvelzen)! - Unescape strings in PHPDoc parser (https://github.com/phpstan/phpstan-src/commit/97786ed8376b478ec541ea9df1c450c1fbfe7461) - PHPDoc parser: add config for lines in its AST & enable ignoring errors within PHPDocs ([#&#8203;2807](https://github.com/phpstan/phpstan-src/pull/2807)), thanks [@&#8203;janedbal](https://github.com/janedbal)! - InvalidPhpDocTagValueRule: include PHPDoc line number in the error message (https://github.com/phpstan/phpstan-src/commit/a04e0be832900749b5b4ba22e2de21db8bfa09a0) - No implicit wildcard in FileExcluder (https://github.com/phpstan/phpstan-src/commit/e19e6e5f8cfa706cc30e44a17276a6bc269f995c), [#&#8203;10299](https://github.com/phpstan/phpstan/issues/10299) - Report invalid exclude paths in PHP config (https://github.com/phpstan/phpstan-src/commit/9718c14f1ffac81ba3d2bf331b4e8b4041a4d004) - Do not generalize template types, except when in `GenericObjectType` ([#&#8203;2818](https://github.com/phpstan/phpstan-src/pull/2818), [#&#8203;2821](https://github.com/phpstan/phpstan-src/pull/2821)) - This fixes following **20 issues**: [#&#8203;8166](https://github.com/phpstan/phpstan/issues/8166), [#&#8203;8127](https://github.com/phpstan/phpstan/issues/8127), [#&#8203;7944](https://github.com/phpstan/phpstan/issues/7944), [#&#8203;7283](https://github.com/phpstan/phpstan/issues/7283), [#&#8203;6653](https://github.com/phpstan/phpstan/issues/6653), [#&#8203;6196](https://github.com/phpstan/phpstan/issues/6196), [#&#8203;9084](https://github.com/phpstan/phpstan/issues/9084), [#&#8203;8683](https://github.com/phpstan/phpstan/issues/8683), [#&#8203;8074](https://github.com/phpstan/phpstan/issues/8074), [#&#8203;7984](https://github.com/phpstan/phpstan/issues/7984), [#&#8203;7301](https://github.com/phpstan/phpstan/issues/7301), [#&#8203;7087](https://github.com/phpstan/phpstan/issues/7087), [#&#8203;5594](https://github.com/phpstan/phpstan/issues/5594), [#&#8203;5592](https://github.com/phpstan/phpstan/issues/5592), [#&#8203;9472](https://github.com/phpstan/phpstan/issues/9472), [#&#8203;9764](https://github.com/phpstan/phpstan/issues/9764), [#&#8203;10092](https://github.com/phpstan/phpstan/issues/10092), [#&#8203;11126](https://github.com/phpstan/phpstan/issues/11126), [#&#8203;11032](https://github.com/phpstan/phpstan/issues/11032), [#&#8203;10653](https://github.com/phpstan/phpstan/issues/10653) - Non-static methods cannot be used as static callables in PHP 8+ ([#&#8203;2420](https://github.com/phpstan/phpstan-src/pull/2420)), thanks [@&#8203;staabm](https://github.com/staabm)! - Analysis with zero files results in non-zero exit code (https://github.com/phpstan/phpstan-src/commit/46ff440648e62617df86aa74ba905ffa99897737), [#&#8203;9410](https://github.com/phpstan/phpstan/issues/9410) - Fail build when project config uses custom extensions outside of analysed paths - This will only occur after a run that uses already present and valid result cache - Returning plain strings as errors no longer supported, use RuleErrorBuilder - Learn more: [Using RuleErrorBuilder to enrich reported errors in custom rules](https://phpstan.org/blog/using-rule-error-builder) - Require identifier in custom rules (https://github.com/phpstan/phpstan-src/commit/969e6fa31d5484d42dab902703cfc6820a983cfd) - New `RuleLevelHelper::accepts()` behaviour (https://github.com/phpstan/phpstan-src/commit/941fc815db49315b8783dc466cf593e0d8a85d23), [#&#8203;11119](https://github.com/phpstan/phpstan/issues/11119), [#&#8203;4174](https://github.com/phpstan/phpstan/issues/4174) - Infer explicit mixed when instantiating generic class with unknown template types (https://github.com/phpstan/phpstan-src/commit/089d4c6fb6eb709c44123548d33990113d174b86), [#&#8203;6398](https://github.com/phpstan/phpstan/issues/6398) - Use explicit mixed for global array variables ([#&#8203;1411](https://github.com/phpstan/phpstan-src/pull/1411)), [#&#8203;7082](https://github.com/phpstan/phpstan/issues/7082), thanks [@&#8203;herndlm](https://github.com/herndlm)! - Consider implicit throw points when the only explicit one is `Throw_` (https://github.com/phpstan/phpstan-src/commit/22eef6d5ab9a4afafb2305258fea273be6cc06e4), [#&#8203;4912](https://github.com/phpstan/phpstan/issues/4912) - Run missing type check on `@param-out` (https://github.com/phpstan/phpstan-src/commit/56b20024386d983927c64dfa895ff026bed2798c) - Report "missing return" error closer to where the return is missing (https://github.com/phpstan/phpstan-src/commit/04f8636e6577cbcaefc944725eed74c0d7865ead) - Report dead types even in multi-exception catch ([#&#8203;2399](https://github.com/phpstan/phpstan-src/pull/2399)), thanks [@&#8203;JanTvrdik](https://github.com/JanTvrdik)! - MethodSignatureRule - look at abstract trait method (https://github.com/phpstan/phpstan-src/commit/5fd8cee591ce1b07daa5f98a1ddcdfc723f1b5eb) - OverridingMethodRule - include template types in prototype declaring class description (https://github.com/phpstan/phpstan-src/commit/ca2c66cc4dff59ba44d52b82cb9e0aa3256240f3) - Detect overriding `@final` method in OverridingMethodRule, [#&#8203;9135](https://github.com/phpstan/phpstan/issues/9135) - Improve error wording of the NonexistentOffset, BooleanAndConstantConditionRule, and BooleanOrConstantConditionRule ([#&#8203;1882](https://github.com/phpstan/phpstan-src/pull/1882)), thanks [@&#8203;VincentLanglet](https://github.com/VincentLanglet)! - Stricter ++/-- operator check ([#&#8203;3255](https://github.com/phpstan/phpstan-src/pull/3255)), thanks [@&#8203;schlndh](https://github.com/schlndh)! - Check mixed in binary operator ([#&#8203;3231](https://github.com/phpstan/phpstan-src/pull/3231)), [#&#8203;7538](https://github.com/phpstan/phpstan/issues/7538), [#&#8203;10440](https://github.com/phpstan/phpstan/issues/10440), thanks [@&#8203;schlndh](https://github.com/schlndh)! - Check mixed in unary operator ([#&#8203;3253](https://github.com/phpstan/phpstan-src/pull/3253)), thanks [@&#8203;schlndh](https://github.com/schlndh)! - Stub files validation - detect duplicate classes and functions (https://github.com/phpstan/phpstan-src/commit/ddf8d5c3859c2c75c20f525a0e2ca8b99032373a, https://github.com/phpstan/phpstan-src/commit/17e4b74335e5235d7cd6708eb687a774a0eeead4) - NoopRule - take advantage of impure points (https://github.com/phpstan/phpstan-src/commit/a6470521b65d7424f552633c1f3827704c6262c3), [#&#8203;10389](https://github.com/phpstan/phpstan/issues/10389) - Improve impossible type checker for void-returning functions ([#&#8203;1857](https://github.com/phpstan/phpstan-src/pull/1857)), [#&#8203;8169](https://github.com/phpstan/phpstan/issues/8169), thanks [@&#8203;rvanvelzen](https://github.com/rvanvelzen)! - Check template type variance in `@param-out` (https://github.com/phpstan/phpstan-src/commit/7ceb19d3b42cf4632d10c2babb0fc5a21b6c8352), https://github.com/phpstan/phpstan/issues/8880#issuecomment-1426971473 - Fix position variance of static method parameters ([#&#8203;2313](https://github.com/phpstan/phpstan-src/pull/2313)), thanks [@&#8203;jiripudil](https://github.com/jiripudil)! - Empty `skipCheckGenericClasses` (https://github.com/phpstan/phpstan-src/commit/28c2c79b16cac6ba6b01f1b4d211541dd49d8a77) - Report unnecessary nullsafe property fetch inside `??` / `isset` / `empty` with different message ([#&#8203;1253](https://github.com/phpstan/phpstan-src/pull/1253)), thanks [@&#8203;rajyan](https://github.com/rajyan)! - Specify explicit mixed array type via `is_array` ([#&#8203;1191](https://github.com/phpstan/phpstan-src/pull/1191)), thanks [@&#8203;herndlm](https://github.com/herndlm)! - TooWideMethodReturnTypehintRule - always report for final methods (https://github.com/phpstan/phpstan-src/commit/c30e9a484c8245b8126cd63444607ca74d2af761) - Move IllegalConstructorMethodCallRule and IllegalConstructorStaticCallRule to phpstan-strict-rules (https://github.com/phpstan/phpstan-src/commit/124b30f98c182193187be0b9c2e151e477429b7a, https://github.com/phpstan/phpstan-strict-rules/commit/0c82c96f2a55d8b91bbc7ee6512c94f68a206b43) - Check invalid PHPDocs in previously unchecked statement types (https://github.com/phpstan/phpstan-src/commit/9780d352f3264aac09ac7954f691de1877db8e01) - InvalidPHPStanDocTagRule in StubValidator (https://github.com/phpstan/phpstan-src/commit/9c2552b7e744926d1a74c1ba8fd32c64079eed61) - CallToConstructorStatementWithoutSideEffectsRule - report class with no constructor (https://github.com/phpstan/phpstan-src/commit/b116d25a6e4ba6c09f59af6569d9e6f6fd20aff4) - ContainerFactory - always check duplicate files (https://github.com/phpstan/phpstan-src/commit/939a715a0636ed05752659dbe7646c1f1a574765) - Display parent class name for anonymous class like native PHP does ([#&#8203;3362](https://github.com/phpstan/phpstan-src/pull/3362)), thanks [@&#8203;mvorisek](https://github.com/mvorisek)! - Always report static property fetch in `isset()`, not just on PHP 8.2+ ([#&#8203;3476](https://github.com/phpstan/phpstan-src/pull/3476)), thanks [@&#8203;ondrejmirtes](https://github.com/ondrejmirtes)! - Revert "Dumb down parameter types in some recently added stubs" (https://github.com/phpstan/phpstan-src/commit/950a491485c46068074ca3f4f6dc5b970d41465a) - Do not apply heuristics of `Collection<...>|Foo[]` being resolved to Collection of Foo (https://github.com/phpstan/phpstan-src/commit/fff8f095988a66f298aa4037fe8e6ba98266063c) - Collected PHP errors cannot be ignored (https://github.com/phpstan/phpstan-src/commit/1d3f4313955dc6fa5c6ce60fa58afe765964e5b0) - Added missing rules to StubValidator (https://github.com/phpstan/phpstan-src/commit/bf19914cac1682d0eab8bf65a874ba368522311c) - Report precise offsets in errors ([#&#8203;3504](https://github.com/phpstan/phpstan-src/pull/3504)), thanks [@&#8203;ruudk](https://github.com/ruudk)! - IntersectionType - always describe list as list (https://github.com/phpstan/phpstan-src/commit/f680629bc92e4dd5d7acd3bc60c9539fb047452b) - ArrayType::describe - explicit mixed should be stated explicitly (https://github.com/phpstan/phpstan-src/commit/6cf223840f89c972551f373ade9eea16d12e143b) - Refactor IntersectionType::describe() (https://github.com/phpstan/phpstan-src/commit/67fbfaee6585c2d47485dc2a159ee76d3ed02b35) - Remove inefficient caching from `PhpMethodReflection` and `PhpFunctionReflection::isVariadic()` ([#&#8203;3534](https://github.com/phpstan/phpstan-src/pull/3534)), thanks [@&#8203;staabm](https://github.com/staabm)! - Clean file cache from unused items (https://github.com/phpstan/phpstan-src/commit/466ad51740d629c9137a77dac28a676b71ef7197) - Journal for used generated containers (https://github.com/phpstan/phpstan-src/commit/57c65888e6372a4056afbbacc8207d411ea8559a) - Use named argument in error for variadic types ([#&#8203;3611](https://github.com/phpstan/phpstan-src/pull/3611)), thanks [@&#8203;ruudk](https://github.com/ruudk)! # Bugfixes 🐛 - Fix invariance composition ([#&#8203;2054](https://github.com/phpstan/phpstan-src/pull/2054)), thanks [@&#8203;jiripudil](https://github.com/jiripudil)! - Fix checking generic `mixed` type based on config ([#&#8203;2885](https://github.com/phpstan/phpstan-src/pull/2885)), thanks [@&#8203;schlndh](https://github.com/schlndh)! # Function signature fixes 🤖 - Countable stub with `0|positive-int` ([#&#8203;1027](https://github.com/phpstan/phpstan-src/pull/1027)), thanks [@&#8203;staabm](https://github.com/staabm)! - More precise types for bcmath function parameters ([#&#8203;2217](https://github.com/phpstan/phpstan-src/pull/2217)), thanks [@&#8203;Warxcell](https://github.com/Warxcell)! - Specify `Imagick` parameter types ([#&#8203;2334](https://github.com/phpstan/phpstan-src/pull/2334)), thanks [@&#8203;zonuexe](https://github.com/zonuexe)! - `max()`/`min()` should expect non-empty-array ([#&#8203;2163](https://github.com/phpstan/phpstan-src/pull/2163)), thanks [@&#8203;staabm](https://github.com/staabm)! - Narrow `Closure::bind` `$newScope` param ([#&#8203;2817](https://github.com/phpstan/phpstan-src/pull/2817)), thanks [@&#8203;mvorisek](https://github.com/mvorisek)! - `error_log` errors with `message_type=2` ([#&#8203;2428](https://github.com/phpstan/phpstan-src/pull/2428)), [#&#8203;9380](https://github.com/phpstan/phpstan/issues/9380), thanks [@&#8203;staabm](https://github.com/staabm)! - Update functionMap ([#&#8203;2699](https://github.com/phpstan/phpstan-src/pull/2699), [#&#8203;2783](https://github.com/phpstan/phpstan-src/pull/2783)), thanks [@&#8203;zonuexe](https://github.com/zonuexe)! - Improve image related functions signature ([#&#8203;3127](https://github.com/phpstan/phpstan-src/pull/3127)), thanks [@&#8203;thg2k](https://github.com/thg2k)! - Support `FILE_NO_DEFAULT_CONTEXT` in `file()` ([#&#8203;2482](https://github.com/phpstan/phpstan-src/pull/2482)), thanks [@&#8203;staabm](https://github.com/staabm)! - Fix ftp related function signatures ([#&#8203;2551](https://github.com/phpstan/phpstan-src/pull/2551)), thanks [@&#8203;thg2k](https://github.com/thg2k)! - More precise `file()` flags args ([#&#8203;2476](https://github.com/phpstan/phpstan-src/pull/2476), [#&#8203;2482](https://github.com/phpstan/phpstan-src/pull/2482)), thanks [@&#8203;staabm](https://github.com/staabm)! - More precise `flock()` operation flags ([#&#8203;2477](https://github.com/phpstan/phpstan-src/pull/2477)), thanks [@&#8203;staabm](https://github.com/staabm)! - More precise `stream_socket_client()` signature ([#&#8203;2519](https://github.com/phpstan/phpstan-src/pull/2519)), thanks [@&#8203;staabm](https://github.com/staabm)! - More precise `scandir()` signature ([#&#8203;2518](https://github.com/phpstan/phpstan-src/pull/2518)), thanks [@&#8203;staabm](https://github.com/staabm)! - More precise `extract()` signature ([#&#8203;2517](https://github.com/phpstan/phpstan-src/pull/2517)), thanks [@&#8203;staabm](https://github.com/staabm)! - More precise `RecursiveIteratorIterator::__construct()` parameter types ([#&#8203;2835](https://github.com/phpstan/phpstan-src/pull/2835)), thanks [@&#8203;staabm](https://github.com/staabm)! - Update `Locale` signatures ([#&#8203;2880](https://github.com/phpstan/phpstan-src/pull/2880)), thanks [@&#8203;devnix](https://github.com/devnix)! - Improved the type of the `$mode` parameter for the `count()` ([#&#8203;3190](https://github.com/phpstan/phpstan-src/pull/3190)), thanks [@&#8203;kuma3](https://github.com/kuma3)! - Check `filter_input*` type param type ([#&#8203;2271](https://github.com/phpstan/phpstan-src/pull/2271)), thanks [@&#8203;herndlm](https://github.com/herndlm)! - Change `curl_setopt` function signature based on 2nd arg ([#&#8203;1719](https://github.com/phpstan/phpstan-src/pull/1719)), thanks [@&#8203;staabm](https://github.com/staabm)! - Support returning an array or a string in `count_chars()` ([#&#8203;3596](https://github.com/phpstan/phpstan-src/pull/3596)), thanks [@&#8203;u01jmg3](https://github.com/u01jmg3)! - xdebug_get_function_stack: fix signature ([#&#8203;3605](https://github.com/phpstan/phpstan-src/pull/3605)), thanks [@&#8203;janedbal](https://github.com/janedbal)! # Internals 🔍 - Tool to make optional parameters required across the codebase (https://github.com/phpstan/phpstan-src/commit/7e366e08f96e2e4095b3f02b5487e8f9531f37bf) - A few more MutatingScope method parameters made required (https://github.com/phpstan/phpstan-src/commit/2c4c0cde75e637ac323e81def57d4a2ace952429) - CommandHelper::begin() parameters made required (https://github.com/phpstan/phpstan-src/commit/f17cf9ec43111cb29dd50d620fb6259c0ab0d373) - MethodTag - constructor parameter `$templateTags` is required (https://github.com/phpstan/phpstan-src/commit/5b58f83e6d8b5044d742caed9729d00178c4a9de) - InitializerExprTypeResolver - constructor parameter `$usePathConstantsAsConstantString` made required (https://github.com/phpstan/phpstan-src/commit/f88d9ba7f56ef6c3b783aee1c909a3422c0ef3c3) - `PhpMethodReflectionFactory::create()` - all parameters are required (https://github.com/phpstan/phpstan-src/commit/8bfbf8f254a68e4f1b15419eb950ea677fc2916e) - FunctionCallParametersCheck - parameters `$nodeType` and `$acceptsNamedArguments` made required (https://github.com/phpstan/phpstan-src/commit/493752737c32eb878de4dfb91817761b952348e4) - MethodParameterComparisonHelper - parameter `$ignorable` of `compare()` method made required (https://github.com/phpstan/phpstan-src/commit/f85a500288b0b8ef9a19d405c0e3d99ab57ce797) - Parameter `$dateTimeClass` of DateTimeModifyReturnTypeExtension constructor made required (https://github.com/phpstan/phpstan-src/commit/a8cd423e842deaa7d924580665207a4b1a373115) - NativeFunctionReflection construct parameters made required (https://github.com/phpstan/phpstan-src/commit/64ff598cd42268d2178d02efd208afe637060978) - Cover AccessoryArrayListType constructor with BC promise (https://github.com/phpstan/phpstan-src/commit/51de9032c6e98bff2d6eb0e5b7295720ec0276b9) - Add `PhpVersion` parameter to various `Type` methods ([#&#8203;3478](https://github.com/phpstan/phpstan-src/pull/3478)), thanks [@&#8203;VincentLanglet](https://github.com/VincentLanglet)! - Move ContainerDynamicReturnTypeExtension to build/PHPStan (https://github.com/phpstan/phpstan-src/commit/5651bec661582b2d62de1b4ae9d5f27e69e3c524) - Renamed NewOptimizedDirectorySourceLocator to OptimizedDirectorySourceLocator (https://github.com/phpstan/phpstan-src/commit/db02a30ca11c7b9839c30e0321ed403dd14f6c73) - Remove unneded abstraction (https://github.com/phpstan/phpstan-src/commit/f302c9069274afa63ec1b4f313ca72340699e9d8) - Introduce native return types thanks to PHP 7.4 return type covariance (https://github.com/phpstan/phpstan-src/commit/392f090066bfc9946b4ad524ffecf3d420c23114) - ReadWritePropertiesExtension - use ExtendedPropertyReflection in parameter type (https://github.com/phpstan/phpstan-src/commit/f0a629685de2202687b9f92bd0e1a516daf2443e) - Declare more precise `getClass()` return types in extension interfaces ([#&#8203;1754](https://github.com/phpstan/phpstan-src/pull/1754)), thanks [@&#8203;staabm](https://github.com/staabm)! - (https://github.com/phpstan/phpstan-src/commit/38cb5a315e5573231d8695df343c8ee87a8c3b2e) - HasOffsetType - put constructor parameter type natively (https://github.com/phpstan/phpstan-src/commit/b5accb3f6bbcffc8a44934539b88903e09b6a174) - Printer is covered by BC promise (https://github.com/phpstan/phpstan-src/commit/b0858332efc7aa2f2fde7544a2a821ba81bde13b) - More interfaces that are not supposed to be implemented in userland (https://github.com/phpstan/phpstan-src/commit/778af2ed74ba59bfb2a69fd5b45821ccdb1107c9, https://github.com/phpstan/phpstan-src/commit/cb6ab5544a016c52f931fc390bcdf9c627819d8f) - Refactored `FunctionCallParametersCheck::check()` parameters (https://github.com/phpstan/phpstan-src/commit/710e09c41698efb1d8d3ae31791944077dbb9cc1) - Spread list usages in Reflection, Scope, Type ([#&#8203;3530](https://github.com/phpstan/phpstan-src/pull/3530)), thanks [@&#8203;janedbal](https://github.com/janedbal)! - Remove $isFinal dead-code in PhpFunctionReflection ([#&#8203;3545](https://github.com/phpstan/phpstan-src/pull/3545)), thanks [@&#8203;staabm](https://github.com/staabm)! - Get rid of unnecessary `instanceof self` in `ConstantArrayType` ([#&#8203;3552](https://github.com/phpstan/phpstan-src/pull/3552)), thanks [@&#8203;herndlm](https://github.com/herndlm)! - test: use `bashunit -a` exit_code to check for errors ([#&#8203;3533](https://github.com/phpstan/phpstan-src/pull/3533)), thanks [@&#8203;Chemaclass](https://github.com/Chemaclass)! - Upgrade bashunit:0.18.0 for e2e tests ([#&#8203;3614](https://github.com/phpstan/phpstan-src/pull/3614)), thanks [@&#8203;Chemaclass](https://github.com/Chemaclass)! - Remove dead code ([#&#8203;3575](https://github.com/phpstan/phpstan-src/pull/3575)), thanks [@&#8203;staabm](https://github.com/staabm)! - Remove dead code in ConstantConditionRuleHelper ([#&#8203;3597](https://github.com/phpstan/phpstan-src/pull/3597)), thanks [@&#8203;staabm](https://github.com/staabm)! </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xODEuNiIsInVwZGF0ZWRJblZlciI6IjM3LjE4MS42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Renovate added 1 commit 2025-02-15 00:04:22 +00:00
chore(deps): update dependency phpstan/phpstan to v2
Some checks failed
renovate/artifacts Artifact file update failure
repod / xml (push) Successful in 15s
repod / php (push) Failing after 36s
repod / nodejs (push) Successful in 44s
repod / release (push) Has been skipped
edc7a85488
Author
Collaborator

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: composer.lock
Command failed: composer update phpstan/phpstan:2.1.5 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires phpstan/phpstan ~2.1.5, found phpstan/phpstan[2.1.5] but these were not loaded, likely because it conflicts with another require.
  Problem 2
    - rector/rector is locked to version 1.2.10 and an update of this package was not requested.
    - rector/rector 1.2.10 requires phpstan/phpstan ^1.12.5 -> found phpstan/phpstan[1.12.5, ..., 1.12.18] but it conflicts with your root composer.json require (~2.1.5).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

### ⚠ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: composer.lock ``` Command failed: composer update phpstan/phpstan:2.1.5 --with-dependencies --ignore-platform-req='ext-*' --ignore-platform-req='lib-*' --no-ansi --no-interaction --no-scripts --no-autoloader --no-plugins Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires phpstan/phpstan ~2.1.5, found phpstan/phpstan[2.1.5] but these were not loaded, likely because it conflicts with another require. Problem 2 - rector/rector is locked to version 1.2.10 and an update of this package was not requested. - rector/rector 1.2.10 requires phpstan/phpstan ^1.12.5 -> found phpstan/phpstan[1.12.5, ..., 1.12.18] but it conflicts with your root composer.json require (~2.1.5). Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. ```
Xefir closed this pull request 2025-02-15 00:10:49 +00:00
Author
Collaborator

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

### Renovate Ignore Notification Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for *any* future `2.x` releases. But if you manually upgrade to `2.x` then Renovate will re-enable `minor` and `patch` updates automatically. If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Some checks failed
renovate/artifacts Artifact file update failure
repod / xml (push) Successful in 15s
repod / php (push) Failing after 36s
repod / nodejs (push) Successful in 44s
repod / release (push) Has been skipped

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Xefir/repod#260
No description provided.