Skip to content

Commit 96221a3

Browse files
committed
Fix reporting Parser Exceptions for PHP 5.3
1 parent 35095e4 commit 96221a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(StreamInterface $stream, Parser $parser = null)
3232
try {
3333
$messages = $parser->push($chunk);
3434
} catch (UnexpectedValueException $e) {
35-
$that->emit('error', array($e, $this));
35+
$that->emit('error', array($e, $that));
3636
return;
3737
}
3838

0 commit comments

Comments
 (0)