Permalink
Browse files

[HttpFoundation] fix #6002

  • Loading branch information...
1 parent b210b23 commit 48745abaa7eb1855d510565fbdd2537d0adf8934 @vicb vicb committed Nov 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 AcceptHeader.php
View
2 AcceptHeader.php
@@ -146,7 +146,7 @@ public function first()
{
$this->sort();
- return !empty($this->items) ? $this->items[0] : null;
+ return !empty($this->items) ? reset($this->items) : null;
}
/**

0 comments on commit 48745ab

Please sign in to comment.