symfony/symfony — pull request #6002 by vicb (2012-11-13 16:22:24+00:00)
Title: [HttpFoundation] Fix AcceptHeader

The important lines are:

```php
items) ? current($this->items) : null;
+ return !empty($this->items) ? $this->items[0] : null;
```

(and the corresponding test).

The commit has some code re-org to make reading tests easier (providers defined close the the corresponding test). This might be personal preferences only, let me know if it should be reverted.