diff --git a/composer.json b/composer.json index 256a5d9..a3162b9 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": "MIT", "require": { "php": ">=8.3", - "phpstan/phpstan": "^2.1" + "phpstan/phpstan": "^2.2.6" }, "require-dev": { "phpstan/phpstan-strict-rules": "^2.0", diff --git a/composer.lock b/composer.lock index d0eb04e..9c6d13b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,15 +4,15 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8418c108b3e3940dd561e75da2a3f6ab", + "content-hash": "4a61a95c96201a255fc37344911cf664", "packages": [ { "name": "phpstan/phpstan", - "version": "2.2.5", + "version": "2.2.6", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/909c1e5fef7989ac0d0c1c5c42e32a5c4f6198a0", - "reference": "909c1e5fef7989ac0d0c1c5c42e32a5c4f6198a0", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a6e9b5a9420f6109c091e87d82683bd1a80b87ed", + "reference": "a6e9b5a9420f6109c091e87d82683bd1a80b87ed", "shasum": "" }, "require": { @@ -68,7 +68,7 @@ "type": "github" } ], - "time": "2026-07-05T06:31:06+00:00" + "time": "2026-07-26T21:22:49+00:00" } ], "packages-dev": [ @@ -184,5 +184,8 @@ "php": ">=8.3" }, "platform-dev": {}, + "platform-overrides": { + "php": "8.3" + }, "plugin-api-version": "2.9.0" } diff --git a/src/Reflection/PublicMethodReflection.php b/src/Reflection/PublicMethodReflection.php index e2da23d..53941f5 100644 --- a/src/Reflection/PublicMethodReflection.php +++ b/src/Reflection/PublicMethodReflection.php @@ -160,6 +160,14 @@ public function isPure(): TrinaryLogic return $this->originalMethod->isPure(); } + /** + * @return array + */ + public function getPureUnlessCallableIsImpureParameters(): array + { + return $this->originalMethod->getPureUnlessCallableIsImpureParameters(); + } + /** * @return list<\PHPStan\Reflection\AttributeReflection> */