mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-11-20 17:56:31 +00:00
🛀 QRDataModeInterface: validate data on init, test cleanup
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ namespace chillerlan\QRCode\Data;
|
||||
|
||||
use chillerlan\QRCode\Common\{BitBuffer, Mode};
|
||||
|
||||
use function ord;
|
||||
use function chr, ord;
|
||||
|
||||
/**
|
||||
* Byte mode, ISO-8859-1 or UTF-8
|
||||
@@ -76,7 +76,7 @@ final class Byte extends QRDataModeAbstract{
|
||||
$readBytes = '';
|
||||
|
||||
for($i = 0; $i < $length; $i++){
|
||||
$readBytes .= \chr($bitBuffer->read(8));
|
||||
$readBytes .= chr($bitBuffer->read(8));
|
||||
}
|
||||
|
||||
return $readBytes;
|
||||
|
||||
Reference in New Issue
Block a user