[HttpFoundation] fix #6002
This commit is contained in:
parent
7bfe13c912
commit
f4b630d1e0
@ -146,7 +146,7 @@ class AcceptHeader
|
||||
{
|
||||
$this->sort();
|
||||
|
||||
return !empty($this->items) ? $this->items[0] : null;
|
||||
return !empty($this->items) ? reset($this->items) : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user