mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-29 11:39:00 +00:00
🚿 sprintf'd some things
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user