Skip to content

Commit f578985

Browse files
Feedback
1 parent 31b86f8 commit f578985

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Type/Php/StrrevFunctionReturnTypeExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public function getTypeFromFunctionCall(
3030
FunctionReflection $functionReflection,
3131
FuncCall $functionCall,
3232
Scope $scope,
33-
): Type
33+
): ?Type
3434
{
3535
$args = $functionCall->getArgs();
3636
if (count($args) < 1) {
37-
return new StringType();
37+
return null;
3838
}
3939

4040
$inputType = $scope->getType($args[0]->value);
@@ -67,7 +67,7 @@ public function getTypeFromFunctionCall(
6767
return new IntersectionType($accessoryTypes);
6868
}
6969

70-
return new StringType();
70+
return null;
7171
}
7272

7373
}

0 commit comments

Comments
 (0)