From cae2e5ffeb2fdffab8bcd4f8ded96274a8f4bb2c Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sat, 3 May 2025 00:27:58 +0200 Subject: [PATCH] [depre] Remove deprecated AssertCountWithZeroToAssertEmptyRector --- ...AssertCountWithZeroToAssertEmptyRector.php | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 rules/CodeQuality/Rector/MethodCall/AssertCountWithZeroToAssertEmptyRector.php diff --git a/rules/CodeQuality/Rector/MethodCall/AssertCountWithZeroToAssertEmptyRector.php b/rules/CodeQuality/Rector/MethodCall/AssertCountWithZeroToAssertEmptyRector.php deleted file mode 100644 index cc4c353f..00000000 --- a/rules/CodeQuality/Rector/MethodCall/AssertCountWithZeroToAssertEmptyRector.php +++ /dev/null @@ -1,56 +0,0 @@ -assertCount(0, ...) to $this->assertEmpty(...)', - [ - new CodeSample( - <<<'CODE_SAMPLE' - $this->assertCount(0, $countable); - $this->assertNotCount(0, $countable); - CODE_SAMPLE - , - <<<'CODE_SAMPLE' - $this->assertEmpty($countable); - $this->assertNotEmpty($countable); - CODE_SAMPLE - ), - ], - ); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [MethodCall::class, StaticCall::class]; - } - - /** - * @param MethodCall|StaticCall $node - */ - public function refactor(Node $node): MethodCall|StaticCall|null - { - // deprecated - return null; - } -}