Skip to content

Commit

Permalink
[HttpFoundation] Check if data passed to SessionBagProxy::initialize …
Browse files Browse the repository at this point in the history
…is an array
  • Loading branch information
mynameisbogdan authored and nicolas-grekas committed Oct 2, 2019
1 parent fb5f8fb commit 38782bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ protected function loadSession(array &$session = null)

foreach ($bags as $bag) {
$key = $bag->getStorageKey();
$session[$key] = isset($session[$key]) ? $session[$key] : [];
$session[$key] = isset($session[$key]) && \is_array($session[$key]) ? $session[$key] : [];
$bag->initialize($session[$key]);
}

Expand Down

0 comments on commit 38782bc

Please sign in to comment.