🚿 sprintf'd some things

This commit is contained in:
codemasher
2019-08-09 21:14:00 +02:00
parent d6b3e6bc3b
commit ab7a11f225
9 changed files with 24 additions and 25 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ namespace chillerlan\QRCode\Data;
use chillerlan\QRCode\QRCode;
use function array_search, ord;
use function array_search, ord, sprintf;
/**
* Alphanumeric mode: 0 to 9, A to Z, space, $ % * + - . / :
@@ -59,7 +59,7 @@ class AlphaNum extends QRDataAbstract{
return $i;
}
throw new QRCodeDataException('illegal char: "'.$chr.'" ['.ord($chr).']');
throw new QRCodeDataException(sprintf('illegal char: "%s" [%d]', $chr, ord($chr)));
}
}