From dc2205094c1b22694f322e7e76426d49f0da7196 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 1 Apr 2024 17:58:30 +0000 Subject: [PATCH] Updated Rector to commit 724899c28307e4cb1f8a7366ebb76756430da754 https://github.com/rectorphp/rector-src/commit/724899c28307e4cb1f8a7366ebb76756430da754 [TypeDeclaration] Do not use Required::class reference on AutowiredClassMethodOrPropertyAnalyzer (#5788) --- .../NodeAnalyzer/AutowiredClassMethodOrPropertyAnalyzer.php | 3 +-- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rules/TypeDeclaration/NodeAnalyzer/AutowiredClassMethodOrPropertyAnalyzer.php b/rules/TypeDeclaration/NodeAnalyzer/AutowiredClassMethodOrPropertyAnalyzer.php index 4beec2aec0e..29e8cd199a1 100644 --- a/rules/TypeDeclaration/NodeAnalyzer/AutowiredClassMethodOrPropertyAnalyzer.php +++ b/rules/TypeDeclaration/NodeAnalyzer/AutowiredClassMethodOrPropertyAnalyzer.php @@ -8,7 +8,6 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Property; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer; -use RectorPrefix202404\Symfony\Contracts\Service\Attribute\Required; final class AutowiredClassMethodOrPropertyAnalyzer { /** @@ -35,6 +34,6 @@ final class AutowiredClassMethodOrPropertyAnalyzer if ($nodePhpDocInfo->hasByNames(['required', 'inject'])) { return \true; } - return $this->phpAttributeAnalyzer->hasPhpAttributes($node, [Required::class, 'Nette\\DI\\Attributes\\Inject']); + return $this->phpAttributeAnalyzer->hasPhpAttributes($node, ['Symfony\\Contracts\\Service\\Attribute\\Required', 'Nette\\DI\\Attributes\\Inject']); } } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index f0418283b54..a443d1487ae 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '0f1987b0faa8dc1c5e086c9b95457d6018b2cd82'; + public const PACKAGE_VERSION = '724899c28307e4cb1f8a7366ebb76756430da754'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-04-01 23:49:16'; + public const RELEASE_DATE = '2024-04-02 00:52:39'; /** * @var int */