Skip to content

Commit 76a5165

Browse files
Fix return statements
1 parent 9f0bd42 commit 76a5165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LazyProxy/ProxyHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function getTypeHint(\ReflectionFunctionAbstract $r, \ReflectionPa
3737
$type = method_exists($r, 'getReturnType') ? $r->getReturnType() : null;
3838
}
3939
if (!$type) {
40-
return;
40+
return null;
4141
}
4242
if (!\is_string($type)) {
4343
$name = $type instanceof \ReflectionNamedType ? $type->getName() : $type->__toString();
@@ -53,7 +53,7 @@ public static function getTypeHint(\ReflectionFunctionAbstract $r, \ReflectionPa
5353
return $prefix.$name;
5454
}
5555
if (!$r instanceof \ReflectionMethod) {
56-
return;
56+
return null;
5757
}
5858
if ('self' === $lcName) {
5959
return $prefix.$r->getDeclaringClass()->name;

0 commit comments

Comments
 (0)