Skip to content

Commit 0adcba2

Browse files
committed
map should have been flatMap
1 parent f80ea4d commit 0adcba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AdditionalCollectors.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function add(CollectorInterface $collector): void
1717

1818
public function collect(): Observable
1919
{
20-
return observableFromArray($this->collectors)->map(function (CollectorInterface $collector) {
20+
return observableFromArray($this->collectors)->flatMap(function (CollectorInterface $collector) {
2121
return $collector->collect();
2222
});
2323
}

0 commit comments

Comments
 (0)