diff --git a/composer.json b/composer.json index 09fb2ab..94a0156 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "ext-dom": "*", "robrichards/xmlseclibs": "^3.1", "josemmo/uxml": "^0.1.4", - "chillerlan/php-qrcode": "^5.0", + "chillerlan/php-qrcode": "^4.3", "phpseclib/phpseclib": "~3.0" }, "require-dev": { diff --git a/src/GenerateQrCode.php b/src/GenerateQrCode.php index c4196cb..fa3512b 100644 --- a/src/GenerateQrCode.php +++ b/src/GenerateQrCode.php @@ -5,7 +5,6 @@ use chillerlan\QRCode\QRCode; use InvalidArgumentException; use chillerlan\QRCode\QROptions; -use chillerlan\QRCode\Output\QROutputInterface; class GenerateQrCode { @@ -75,16 +74,7 @@ public function toBase64(): string */ public function render(array $options = [], ?string $file = null): string { - if (!isset($options['outputType']) && !isset($options['outputInterface'])) { - $options['outputType'] = QROutputInterface::GDIMAGE_PNG; - } - - if (!isset($options['imageTransparent'])) { - $options['imageTransparent'] = true; - } - $options = new QROptions($options); - return (new QRCode($options))->render($this->toBase64(), $file); } }