mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-10 22:06:01 +00:00
:octocat: Byte: string "0" fails with empty()
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ final class Byte extends QRDataModeAbstract{
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function validateString(string $string):bool{
|
||||
return !empty($string);
|
||||
return $string !== '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user