diff --git a/rules/Carbon/Rector/New_/DateTimeInstanceToCarbonRector.php b/rules/Carbon/Rector/New_/DateTimeInstanceToCarbonRector.php index 584ac758435..1867e1ad5be 100644 --- a/rules/Carbon/Rector/New_/DateTimeInstanceToCarbonRector.php +++ b/rules/Carbon/Rector/New_/DateTimeInstanceToCarbonRector.php @@ -72,7 +72,7 @@ public function refactor(Node $node): ?Node return null; } - public function refactorWithClass(New_ $new, string $className): MethodCall|StaticCall|null + private function refactorWithClass(New_ $new, string $className): MethodCall|StaticCall|null { // no arg? ::now() $carbonFullyQualified = new FullyQualified($className);