Skip to content

Commit

Permalink
Update TwitterStream.php
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdorn authored May 25, 2023
1 parent 8548533 commit b5c6a07
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/TwitterStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,10 @@ public function listen(TwitterConnection $connection, callable $callback): void
$this->stream = $this->response->getBody();
$this->createdAt = Clock::now();

dump('now');

$this->parser = new Parser(
stream: StreamWrapper::getResource($this->response->getBody()),
listener: new Listener(
callback: function (object $item) use ($callback) {
dump('in callback');
$this->received++;

$callback($item, $this);
Expand Down

0 comments on commit b5c6a07

Please sign in to comment.