summaryrefslogtreecommitdiff
path: root/vendor/symfony/http-foundation/Session/SessionBagProxy.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/http-foundation/Session/SessionBagProxy.php')
-rw-r--r--vendor/symfony/http-foundation/Session/SessionBagProxy.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/symfony/http-foundation/Session/SessionBagProxy.php b/vendor/symfony/http-foundation/Session/SessionBagProxy.php
index 88005ee092..3504bdfe7b 100644
--- a/vendor/symfony/http-foundation/Session/SessionBagProxy.php
+++ b/vendor/symfony/http-foundation/Session/SessionBagProxy.php
@@ -44,6 +44,9 @@ final class SessionBagProxy implements SessionBagInterface
*/
public function isEmpty()
{
+ if (!isset($this->data[$this->bag->getStorageKey()])) {
+ return true;
+ }
++$this->usageIndex;
return empty($this->data[$this->bag->getStorageKey()]);
@@ -81,8 +84,6 @@ final class SessionBagProxy implements SessionBagInterface
*/
public function clear()
{
- ++$this->usageIndex;
-
return $this->bag->clear();
}
}