Skip to content

Commit 520a802

Browse files
committed
Use return null; when the return type is null
1 parent 8d00e7e commit 520a802

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Container/Util.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function getParameterClassName($parameter)
5353
$type = $parameter->getType();
5454

5555
if (! $type instanceof ReflectionNamedType || $type->isBuiltin()) {
56-
return;
56+
return null;
5757
}
5858

5959
$name = $type->getName();

src/Illuminate/Translation/MessageSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function extractFromString($part, $number)
6161
preg_match('/^[\{\[]([^\[\]\{\}]*)[\}\]](.*)/s', $part, $matches);
6262

6363
if (count($matches) !== 3) {
64-
return;
64+
return null;
6565
}
6666

6767
$condition = $matches[1];

0 commit comments

Comments
 (0)