Skip to content

Commit 77df93d

Browse files
authored
Merge pull request #16 from dunglas/fix-profiler
Fix the DataCollector
2 parents ac82d7d + e0d7629 commit 77df93d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
0.2.1
5+
-----
6+
7+
* Fix a crash in `MercureDataCollector`
8+
49
0.2.0
510
-----
611

src/DataCollector/MercureDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function collect(Request $request, Response $response, \Exception $except
3636
'count' => 0,
3737
'duration' => 0.0,
3838
'memory' => 0,
39-
'publishers' => $this->publishers,
39+
'publishers' => iterator_to_array($this->publishers),
4040
];
4141

4242
foreach ($this->publishers as $name => $publisher) {

0 commit comments

Comments
 (0)