From 47c9eb30a1f5d3b3e29608c28851e49b47e27781 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Sun, 8 Dec 2019 23:40:35 +0100 Subject: [PATCH] fixup! fixup! migrate code to PHPStan 0.12 --- .../src/Rector/FunctionLike/ReturnTypeDeclarationRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;