Skip to content

Commit 820280d

Browse files
committed
[HttpFoundation] add InputBag
1 parent 50d1d8c commit 820280d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ParameterBagUtils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ final class ParameterBagUtils
3636
public static function getParameterBagValue(ParameterBag $parameters, string $path)
3737
{
3838
if (false === $pos = strpos($path, '[')) {
39-
return $parameters->get($path);
39+
return $parameters->all()[$path] ?? null;
4040
}
4141

4242
$root = substr($path, 0, $pos);
4343

44-
if (null === $value = $parameters->get($root)) {
44+
if (null === $value = $parameters->all()[$root] ?? null) {
4545
return null;
4646
}
4747

0 commit comments

Comments
 (0)