Skip to content

Commit

Permalink
A different fix for #7649
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 10, 2015
1 parent 74452a0 commit a5a22bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Collection/CollectionTrait.php
Expand Up @@ -607,7 +607,10 @@ public function zipWith($items, $callable)
*/
public function isEmpty()
{
return iterator_count($this->unwrap()) === 0;
foreach ($this->unwrap() as $el) {
return false;
}
return true;
}

/**
Expand Down

0 comments on commit a5a22bd

Please sign in to comment.