From cee9cd3438e094c2117e402561744f8b75f3f7f9 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 18 Aug 2023 18:43:10 +0700 Subject: [PATCH] [PhpUnit90] Return null on no change on ExplicitPhpErrorApiRector --- rules/PHPUnit90/Rector/MethodCall/ExplicitPhpErrorApiRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/PHPUnit90/Rector/MethodCall/ExplicitPhpErrorApiRector.php b/rules/PHPUnit90/Rector/MethodCall/ExplicitPhpErrorApiRector.php index 7505d9ce..6104a4fc 100644 --- a/rules/PHPUnit90/Rector/MethodCall/ExplicitPhpErrorApiRector.php +++ b/rules/PHPUnit90/Rector/MethodCall/ExplicitPhpErrorApiRector.php @@ -99,7 +99,7 @@ public function refactor(Node $node): ?Node } } - return $node; + return null; } private function replaceExceptionWith(