:octocat: forgot about these... 💄

This commit is contained in:
codemasher
2018-10-01 13:36:56 +02:00
parent 5e316540a1
commit cdde12f89c
4 changed files with 15 additions and 15 deletions
+1 -3
View File
@@ -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.']');
}