diff --git a/benchmark/QRCodeBenchmark.php b/benchmark/QRCodeBenchmark.php index d55023a97..0c6936280 100644 --- a/benchmark/QRCodeBenchmark.php +++ b/benchmark/QRCodeBenchmark.php @@ -11,7 +11,6 @@ declare(strict_types=1); namespace chillerlan\QRCodeBenchmark; -use chillerlan\QRCode\Output\QRStringJSON; use chillerlan\QRCode\QRCode; use PhpBench\Attributes\{BeforeMethods, Subject}; @@ -23,9 +22,8 @@ final class QRCodeBenchmark extends BenchmarkAbstract{ public function initOptions():void{ $options = [ - 'outputInterface' => QRStringJSON::class, - 'version' => $this->version->getVersionNumber(), - 'eccLevel' => $this->eccLevel->getLevel(), + 'version' => $this->version->getVersionNumber(), + 'eccLevel' => $this->eccLevel->getLevel(), ]; $this->initQROptions($options); diff --git a/examples/custom_output.php b/examples/custom_output.php index ead973a32..25bac3f80 100644 --- a/examples/custom_output.php +++ b/examples/custom_output.php @@ -74,7 +74,7 @@ $options = new QROptions; $options->version = 5; $options->eccLevel = 'L'; -$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s'; +$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; // invoke the QROutputInterface manually // please note that an QROutputInterface invoked this way might become unusable after calling dump(). diff --git a/src/Output/QRInterventionImage.php b/src/Output/QRInterventionImage.php index e8d6dcc11..0392c41e6 100644 --- a/src/Output/QRInterventionImage.php +++ b/src/Output/QRInterventionImage.php @@ -59,7 +59,6 @@ class QRInterventionImage extends QROutputAbstract{ } try{ - $this->driver = match(true){ extension_loaded('gd') => new GdDriver, extension_loaded('imagick') => new ImagickDriver, diff --git a/src/Output/QROutputInterface.php b/src/Output/QROutputInterface.php index 78c768966..8ef4d7928 100644 --- a/src/Output/QROutputInterface.php +++ b/src/Output/QROutputInterface.php @@ -33,6 +33,7 @@ interface QROutputInterface{ QRGdImagePNG::class, QRGdImageWEBP::class, QRImagick::class, + QRInterventionImage::class, QRMarkupHTML::class, QRMarkupSVG::class, QRMarkupXML::class,