Skip to content

Commit aa9fccf

Browse files
Fix return statements
1 parent b56f003 commit aa9fccf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ParameterBagUtils.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function getParameterBagValue(ParameterBag $parameters, $path)
4545
$root = substr($path, 0, $pos);
4646

4747
if (null === $value = $parameters->get($root)) {
48-
return;
48+
return null;
4949
}
5050

5151
if (null === self::$propertyAccessor) {
@@ -55,7 +55,7 @@ public static function getParameterBagValue(ParameterBag $parameters, $path)
5555
try {
5656
return self::$propertyAccessor->getValue($value, substr($path, $pos));
5757
} catch (AccessException $e) {
58-
return;
58+
return null;
5959
}
6060
}
6161

@@ -80,7 +80,7 @@ public static function getRequestParameterValue(Request $request, $path)
8080
$root = substr($path, 0, $pos);
8181

8282
if (null === $value = $request->get($root)) {
83-
return;
83+
return null;
8484
}
8585

8686
if (null === self::$propertyAccessor) {
@@ -90,7 +90,7 @@ public static function getRequestParameterValue(Request $request, $path)
9090
try {
9191
return self::$propertyAccessor->getValue($value, substr($path, $pos));
9292
} catch (AccessException $e) {
93-
return;
93+
return null;
9494
}
9595
}
9696
}

0 commit comments

Comments
 (0)