diff --git a/packages/TypeDeclaration/src/Rector/FunctionLike/ReturnTypeDeclarationRector.php b/packages/TypeDeclaration/src/Rector/FunctionLike/ReturnTypeDeclarationRector.php index 0da457ee7eb..9f6092daf33 100644 --- a/packages/TypeDeclaration/src/Rector/FunctionLike/ReturnTypeDeclarationRector.php +++ b/packages/TypeDeclaration/src/Rector/FunctionLike/ReturnTypeDeclarationRector.php @@ -145,7 +145,7 @@ public function refactor(Node $node): ?Node } } - // nullable aase + // nullable case if ($currentType instanceof UnionType && $inferedType instanceof UnionType) { if ($inferedType->isSubTypeOf($currentType)->yes()) { return null;