8000 Update for @nicolas-grekas's code review · alexpott/symfony@ab78685 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab78685

Browse files
committed
Update for @nicolas-grekas's code review
1 parent aa667ce commit ab78685

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,11 @@ public function regenerate($destroy = false, $lifetime = null)
219219
*/
220220
public function save()
221221
{
222-
// In PHP <7.2 session_write_close() does not error if the session is
223-
// not started.
222+
// In PHP <7.2 session_write_close() returns void if the session is not started.
223+
// @see https://www.php.net/manual/function.session-write-close.php
224224
if (!$this->started) {
225225
return;
226226
}
227-
228227
$session = $_SESSION;
229228

230229
foreach ($this->bags as $bag) {

0 commit comments

Comments
 (0)
0