From ce5a94e259bf7cda0450768b710e12edfb9d53df Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 11 Dec 2023 11:36:13 +0700 Subject: [PATCH] in function --- .../DowngradeStandaloneNullTrueFalseReturnTypeRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/DowngradePhp82/Rector/FunctionLike/DowngradeStandaloneNullTrueFalseReturnTypeRector.php b/rules/DowngradePhp82/Rector/FunctionLike/DowngradeStandaloneNullTrueFalseReturnTypeRector.php index b57c587e..b9c81269 100644 --- a/rules/DowngradePhp82/Rector/FunctionLike/DowngradeStandaloneNullTrueFalseReturnTypeRector.php +++ b/rules/DowngradePhp82/Rector/FunctionLike/DowngradeStandaloneNullTrueFalseReturnTypeRector.php @@ -85,7 +85,7 @@ public function refactor(Node $node): ?Node $node->returnType = new Identifier('mixed'); $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node); - $this->phpDocTypeChanger->changeReturnType($node, $phpDocInfo, new \PHPStan\Type\NullType()); + $this->phpDocTypeChanger->changeReturnType($node, $phpDocInfo, new NullType()); return $node; }