From ca11371826ffc01f6dab9fb1aa0d2b4f67004ad2 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:53:42 +0100 Subject: [PATCH] [TypeDeclaration] Remove deprecated DeclareStrictTypesRector --- .../DeclareStrictTypesRector.php | 70 ------------------- 1 file changed, 70 deletions(-) delete mode 100644 rules/TypeDeclaration/Rector/StmtsAwareInterface/DeclareStrictTypesRector.php diff --git a/rules/TypeDeclaration/Rector/StmtsAwareInterface/DeclareStrictTypesRector.php b/rules/TypeDeclaration/Rector/StmtsAwareInterface/DeclareStrictTypesRector.php deleted file mode 100644 index 148ebaa0c02..00000000000 --- a/rules/TypeDeclaration/Rector/StmtsAwareInterface/DeclareStrictTypesRector.php +++ /dev/null @@ -1,70 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [FileNode::class]; - } - - /** - * @param FileNode $node - */ - public function refactor(Node $node): ?FileNode - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as too risky without type-safety context. Use SafeDeclareStrictTypesRector instead', - self::class - )); - } -}