Skip to content

Commit

Permalink
Minimal fix for PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet authored Apr 7, 2021
1 parent 7d02e82 commit 7c2ccd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChunkedStreamDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function iterateBuffer()
}
}
$this->nextChunkIsLength = false;
if (dechex(@hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
if (dechex((int)@hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
$this->emit('error', array(
new Exception('Unable to validate "' . $lengthChunk . '" as chunk length header'),
));
Expand Down

0 comments on commit 7c2ccd0

Please sign in to comment.