Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Commit

Permalink
Fixed group by
Browse files Browse the repository at this point in the history
  • Loading branch information
italolelis committed Dec 1, 2015
1 parent a52977e commit 4a467be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rx/RxTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function groupBy($callback)
foreach ($this as $value) {
$key = $callback($value);
if (!$group->containsKey($key)) {
$group->add($key, new ArrayList([$value]));
$group->add($key, new static([$value]));
} else {
$value = $group->get($key)->add($value);
$group->set($key, $value);
Expand Down

0 comments on commit 4a467be

Please sign in to comment.