From ceccbe41e5d7fd1a4d4319bd767719244c63575e Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 12 Aug 2024 18:25:15 +0200 Subject: [PATCH] run rector --- composer.json | 10 +++++----- .../ConstFetch/DowngradePhp72JsonConstRector.php | 2 +- .../ConstFetch/DowngradePhp73JsonConstRector.php | 2 +- .../Reflection/SimplePhpParameterReflection.php | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 4812e0df..b2b4e3dd 100644 --- a/composer.json +++ b/composer.json @@ -12,12 +12,12 @@ "phpstan/phpstan-webmozart-assert": "^1.2", "phpunit/phpunit": "^10.5", "rector/rector-src": "dev-main", - "rector/type-perfect": "^0.1.6", - "symplify/easy-coding-standard": "^12.0", - "symplify/phpstan-extensions": "^11.3", + "rector/type-perfect": "^0.1.8", + "symplify/easy-coding-standard": "^12.3", + "symplify/phpstan-extensions": "^11.4", "symplify/phpstan-rules": "^13.0", - "symplify/rule-doc-generator": "^12.0", - "symplify/vendor-patches": "^11.2", + "symplify/rule-doc-generator": "^12.2", + "symplify/vendor-patches": "^11.3", "tomasvotruba/class-leak": "^0.2.13", "tracy/tracy": "^2.10" }, diff --git a/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php b/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php index 1a01f7b4..debc526d 100644 --- a/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php +++ b/rules/DowngradePhp72/Rector/ConstFetch/DowngradePhp72JsonConstRector.php @@ -93,7 +93,7 @@ private function refactorIf(If_ $if): ?If_ return null; } - $this->traverseNodesWithCallable($if, static function (Node $node) { + $this->traverseNodesWithCallable($if, static function (Node $node): null { $node->setAttribute(self::PHP72_JSON_CONSTANT_IS_KNOWN, true); return null; }); diff --git a/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php b/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php index 272271d9..7677d90c 100644 --- a/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php +++ b/rules/DowngradePhp73/Rector/ConstFetch/DowngradePhp73JsonConstRector.php @@ -152,7 +152,7 @@ private function refactorIf(If_ $if): ?If_ return null; } - $this->traverseNodesWithCallable($if, static function (Node $node) { + $this->traverseNodesWithCallable($if, static function (Node $node): null { $node->setAttribute(self::PHP73_JSON_CONSTANT_IS_KNOWN, true); return null; }); diff --git a/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php b/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php index 7b835f32..06618266 100644 --- a/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php +++ b/rules/DowngradePhp80/Reflection/SimplePhpParameterReflection.php @@ -13,9 +13,9 @@ use ReflectionParameter; use Throwable; -final class SimplePhpParameterReflection implements ParameterReflection +final readonly class SimplePhpParameterReflection implements ParameterReflection { - private readonly ReflectionParameter $reflectionParameter; + private ReflectionParameter $reflectionParameter; public function __construct(ReflectionFunction $reflectionFunction, int $position) {