diff --git a/rules/Transform/Rector/Class_/AddInterfaceByTraitRector.php b/rules/Transform/Rector/Class_/AddInterfaceByTraitRector.php deleted file mode 100644 index 8573aa6c12b..00000000000 --- a/rules/Transform/Rector/Class_/AddInterfaceByTraitRector.php +++ /dev/null @@ -1,71 +0,0 @@ - 'SomeInterface', - ] - ), - ]); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [Class_::class]; - } - - /** - * @param Class_ $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as too niche; use a custom rule scoped to your own trait and interface pair instead', - self::class - )); - } - - /** - * @param mixed[] $configuration - */ - public function configure(array $configuration): void - { - } -} diff --git a/rules/Transform/Rector/FuncCall/FuncCallToMethodCallRector.php b/rules/Transform/Rector/FuncCall/FuncCallToMethodCallRector.php deleted file mode 100644 index 5eb85c23f77..00000000000 --- a/rules/Transform/Rector/FuncCall/FuncCallToMethodCallRector.php +++ /dev/null @@ -1,86 +0,0 @@ -someRenderer = $someRenderer; - } - - public function run() - { - $this->someRenderer->view('...'); - } -} -CODE_SAMPLE - , - [new FuncCallToMethodCall('view', 'Namespaced\SomeRenderer', 'render')] - ), - ]); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [Class_::class]; - } - - /** - * @param Class_ $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as a function call can rarely be turned to a method call without breaking the code; use a custom rule for the exact project case instead', - self::class - )); - } - - /** - * @param mixed[] $configuration - */ - public function configure(array $configuration): void - { - } -} diff --git a/rules/Transform/Rector/Scalar/ScalarValueToConstFetchRector.php b/rules/Transform/Rector/Scalar/ScalarValueToConstFetchRector.php deleted file mode 100644 index 8d58a963531..00000000000 --- a/rules/Transform/Rector/Scalar/ScalarValueToConstFetchRector.php +++ /dev/null @@ -1,69 +0,0 @@ -oldFuncName; - } - - public function getNewObjectType(): ObjectType - { - return new ObjectType($this->newClassName); - } - - public function getNewMethodName(): string - { - return $this->newMethodName; - } -} diff --git a/rules/Transform/ValueObject/ScalarValueToConstFetch.php b/rules/Transform/ValueObject/ScalarValueToConstFetch.php deleted file mode 100644 index d669905e2aa..00000000000 --- a/rules/Transform/ValueObject/ScalarValueToConstFetch.php +++ /dev/null @@ -1,33 +0,0 @@ -scalar; - } - - public function getConstFetch(): ConstFetch|ClassConstFetch - { - return $this->constFetch; - } -}