From 028c1064eb85ace6e4f7639c3db2a3dbdc3d4c53 Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Thu, 17 Jun 2021 17:47:39 +0200 Subject: [PATCH] Fix ReturnTypeFromReturnNewRector rule definition typo (#239) --- .../Rector/ClassMethod/ReturnTypeFromReturnNewRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php index edeb4a6a40e..cdc090943c3 100644 --- a/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php +++ b/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnNewRector.php @@ -43,7 +43,7 @@ public function action() <<<'CODE_SAMPLE' final class SomeClass { - public function action(): Respose + public function action(): Response { return new Response(); }