Procházet zdrojové kódy

[HttpFoundation] Small optimization of Session flash handling

Jordi Boggiano před 14 roky
rodič
revize
f400124037

+ 1 - 1
src/Symfony/Component/HttpFoundation/Session.php

@@ -66,7 +66,7 @@ class Session implements \Serializable
             $this->setPhpDefaultLocale($this->locale);
 
             // flag current flash messages to be removed at shutdown
-            $this->oldFlashes = array_flip(array_keys($this->flashes));
+            $this->oldFlashes = $this->flashes;
         }
 
         $this->started = true;