Skip to content

Commit ffa0540

Browse files
authored
Merge pull request #154 from remicollet/patch-1
Minimal fix for PHP 8
2 parents 7d02e82 + 7c2ccd0 commit ffa0540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ChunkedStreamDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function iterateBuffer()
111111
}
112112
}
113113
$this->nextChunkIsLength = false;
114-
if (dechex(@hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
114+
if (dechex((int)@hexdec($lengthChunk)) !== strtolower($lengthChunk)) {
115115
$this->emit('error', array(
116116
new Exception('Unable to validate "' . $lengthChunk . '" as chunk length header'),
117117
));

0 commit comments

Comments
 (0)