We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a614d1e commit de3dd9aCopy full SHA for de3dd9a
src/QRCode.php
@@ -307,7 +307,7 @@ public function isKanji(string $string):bool{
307
* a dummy
308
*/
309
public function isByte(string $data):bool{
310
- return !empty($data);
+ return $data !== '';
311
}
312
313
tests/QRCodeTest.php
@@ -74,6 +74,7 @@ public function testIsKanji():void{
74
public function testIsByte():void{
75
$this::assertTrue($this->qrcode->isByte("\x01\x02\x03"));
76
$this::assertTrue($this->qrcode->isByte(' ')); // not empty!
77
+ $this::assertTrue($this->qrcode->isByte('0'));
78
79
$this::assertFalse($this->qrcode->isByte(''));
80
0 commit comments