Skip to content

Commit 8348f4b

Browse files
committed
Fix empty string issue in php 8.5
1 parent e42bfda commit 8348f4b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

SourceQuery/Buffer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ public function Read( int $Length = -1 ) : string
9393
*/
9494
public function ReadByte( ) : int
9595
{
96+
if( $this->Remaining( ) < 1 )
97+
{
98+
return 0;
99+
}
100+
96101
return ord( $this->Read( 1 ) );
97102
}
98103

0 commit comments

Comments
 (0)