Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…valid()` should return `true` also for `false` and `null` values in the `PriorityList`
  • Loading branch information
Ocramius committed Nov 20, 2014
1 parent 846327d commit 31a5668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PriorityList.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function next()
*/
public function valid()
{
return $this->current() !== false;
return current($this->items) !== false;
}

/**
Expand Down

0 comments on commit 31a5668

Please sign in to comment.