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 */