🚿 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
@@ -12,7 +12,7 @@
namespace chillerlan\QRCode;
use function array_values, count, is_array, is_numeric, max, min;
use function array_values, count, is_array, is_numeric, max, min, sprintf;
trait QROptionsTrait{
@@ -284,7 +284,7 @@ trait QROptionsTrait{
protected function set_eccLevel(int $eccLevel):void{
if(!isset(QRCode::ECC_MODES[$eccLevel])){
throw new QRCodeException('Invalid error correct level: '.$eccLevel);
throw new QRCodeException(sprintf('Invalid error correct level: %s', $eccLevel));
}
$this->eccLevel = $eccLevel;