Skip to content

Commit

Permalink
Bugfix for HHVM compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Lindner committed Jan 14, 2017
1 parent 7278aa7 commit 6f14bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhpAmqpLib/Wire/AMQPReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct($str, AbstractIO $io = null, $timeout = 0)
{
parent::__construct();

$this->str = $str;
$this->str = is_string($str) ? $str : '';
$this->str_length = mb_strlen($this->str, 'ASCII');
$this->io = $io;
$this->offset = 0;
Expand Down

0 comments on commit 6f14bfb

Please sign in to comment.