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 35ffbbf commit 233f40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Session/Storage/NativeSessionStorage.php
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 233f40c

Please sign in to comment.