diff vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
line wrap: on
line diff
--- a/vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/vendor/symfony/http-foundation/Session/Storage/MockFileSessionStorage.php	Thu Feb 28 13:11:55 2019 +0000
@@ -98,7 +98,7 @@
                 unset($data[$key]);
             }
         }
-        if (array($key = $this->metadataBag->getStorageKey()) === array_keys($data)) {
+        if ([$key = $this->metadataBag->getStorageKey()] === array_keys($data)) {
             unset($data[$key]);
         }
 
@@ -145,7 +145,7 @@
     private function read()
     {
         $filePath = $this->getFilePath();
-        $this->data = is_readable($filePath) && is_file($filePath) ? unserialize(file_get_contents($filePath)) : array();
+        $this->data = is_readable($filePath) && is_file($filePath) ? unserialize(file_get_contents($filePath)) : [];
 
         $this->loadSession();
     }