Ver Fonte

[HttpFoundation] Small optimization of Session flash handling

Jordi Boggiano há 14 anos atrás
pai
commit
f400124037
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Symfony/Component/HttpFoundation/Session.php

+ 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;