mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-11-23 03:12:29 +00:00
:octocat: forgot about these... 💄
This commit is contained in:
+1
-3
@@ -19,8 +19,6 @@ use chillerlan\QRCode\QRCode;
|
||||
*/
|
||||
class Number extends QRDataAbstract{
|
||||
|
||||
public const CHAR_MAP = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
@@ -70,7 +68,7 @@ class Number extends QRDataAbstract{
|
||||
for($i = 0; $i < $len; $i++){
|
||||
$c = ord($string[$i]);
|
||||
|
||||
if(!in_array($string[$i], $this::CHAR_MAP, true)){
|
||||
if(!in_array($string[$i], $this::NUMBER_CHAR_MAP, true)){
|
||||
throw new QRCodeDataException('illegal char: "'.$string[$i].'" ['.$c.']');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user