8000 [HttpFoundation] Small optimization of Session flash handling · brki/symfony@f400124 · GitHub
[go: up one dir, main page]

Skip to content

Commit f400124

Browse files
committed
[HttpFoundation] Small optimization of Session flash handling
1 parent 8b168a1 commit f400124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function start()
6666
$this->setPhpDefaultLocale($this->locale);
6767

6868
// flag current flash messages to be removed at shutdown
69-
$this->oldFlashes = array_flip(array_keys($this->flashes));
69+
$this->oldFlashes = $this->flashes;
7070
}
7171

7272
$this->started = true;

0 commit comments

Comments
 (0)
0