mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-28 19:18:44 +00:00
🔥 v6.0 first pass: PHP 8.2, remove deprecated elements, add type hints
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
use chillerlan\QRCode\{QRCode, QROptions};
|
||||
use chillerlan\QRCode\Output\{QROutputInterface, QRGdImagePNG};
|
||||
use chillerlan\QRCode\Output\QRGdImagePNG;
|
||||
|
||||
require_once __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
@@ -66,7 +66,7 @@ class QRImageWithText extends QRGdImagePNG{
|
||||
$background = imagecolorallocate($this->image, ...$textBG);
|
||||
|
||||
// allow transparency
|
||||
if($this->options->imageTransparent && $this->options->outputType !== QROutputInterface::GDIMAGE_JPG){
|
||||
if($this->options->imageTransparent){
|
||||
imagecolortransparent($this->image, $background);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user