8000 [HttpFoundation] fix #6002 · lanthaler/symfony@f4b630d · GitHub
[go: up one dir, main page]

Skip to content

Commit f4b630d

Browse files
committed
[HttpFoundation] fix symfony#6002
1 parent 7bfe13c commit f4b630d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/AcceptHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function first()
146146
{
147147
$this->sort();
148148

149-
return !empty($this->items) ? $this->items[0] : null;
149+
return !empty($this->items) ? reset($this->items) : null;
150150
}
151151

152152
/**

0 commit comments

Comments
 (0)
0