From 4f0606988a8ec38da39ff8735f9fab07e9c31a1c Mon Sep 17 00:00:00 2001 From: codemasher Date: Tue, 17 Mar 2026 19:16:04 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20readthedocs=20from=20@=20chill?= =?UTF-8?q?erlan/php-qrcode@8bb5a85d7bd1f81fc2fd724fc1a55ef8b02b5e87=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Built-In-Output/QREps.html | 4 ++-- Built-In-Output/QRFpdf.html | 4 ++-- Built-In-Output/QRGdImage.html | 4 ++-- Built-In-Output/QRImagick.html | 4 ++-- Built-In-Output/QRInterventionImage.html | 4 ++-- Built-In-Output/QRMarkupHTML.html | 2 +- Built-In-Output/QRMarkupSVG.html | 2 +- Built-In-Output/QRMarkupXML.html | 2 +- Built-In-Output/QRStringJSON.html | 4 ++-- Built-In-Output/QRStringText.html | 2 +- Usage/Advanced-usage.html | 2 +- Usage/Installation.html | 2 +- Usage/Quickstart.html | 4 ++-- Usage/Reading-QRCodes.html | 4 ++-- _sources/Built-In-Output/QREps.md.txt | 4 ++-- _sources/Built-In-Output/QRFpdf.md.txt | 4 ++-- _sources/Built-In-Output/QRGdImage.md.txt | 4 ++-- _sources/Built-In-Output/QRImagick.md.txt | 4 ++-- _sources/Built-In-Output/QRInterventionImage.md.txt | 4 ++-- _sources/Built-In-Output/QRMarkupHTML.md.txt | 2 +- _sources/Built-In-Output/QRMarkupSVG.md.txt | 2 +- _sources/Built-In-Output/QRMarkupXML.md.txt | 2 +- _sources/Built-In-Output/QRStringJSON.md.txt | 4 ++-- _sources/Built-In-Output/QRStringText.md.txt | 2 +- _sources/Usage/Advanced-usage.md.txt | 2 +- _sources/Usage/Installation.md.txt | 2 +- _sources/Usage/Quickstart.md.txt | 4 ++-- _sources/Usage/Reading-QRCodes.md.txt | 4 ++-- 28 files changed, 44 insertions(+), 44 deletions(-) diff --git a/Built-In-Output/QREps.html b/Built-In-Output/QREps.html index e7e43ea52..880bab3e4 100644 --- a/Built-In-Output/QREps.html +++ b/Built-In-Output/QREps.html @@ -355,14 +355,14 @@
$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
 $file = __DIR__.'/qrcode.eps';
 
-(new QRCode($options))->render($data, $file);
+new QRCode($options)->render($data, $file);
 

Push as file download in a browser:

header('Content-type: application/postscript');
 header('Content-Disposition: filename="qrcode.eps"');
 
-echo (new QRCode($options))->render($data);
+echo new QRCode($options)->render($data);
 
 exit;
 
diff --git a/Built-In-Output/QRFpdf.html b/Built-In-Output/QRFpdf.html index 265ac9b7f..dade10d27 100644 --- a/Built-In-Output/QRFpdf.html +++ b/Built-In-Output/QRFpdf.html @@ -353,7 +353,7 @@

Render the output:

$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$out  = (new QRCode($options))->render($data); // -> data:application/pdf;base64,...
+$out  = new QRCode($options)->render($data); // -> data:application/pdf;base64,...
 
 echo $out;
 
@@ -362,7 +362,7 @@
$options->returnResource = true;
 
 /** @var \FPDF $fpdf */
-$fpdf = (new QRCode($options))->render($data);
+$fpdf = new QRCode($options)->render($data);
 
 // do stuff with the FPDF instance...
 
diff --git a/Built-In-Output/QRGdImage.html b/Built-In-Output/QRGdImage.html
index 2064dccbe..7b38c055b 100644
--- a/Built-In-Output/QRGdImage.html
+++ b/Built-In-Output/QRGdImage.html
@@ -366,7 +366,7 @@
 

Render the output:

$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$out  = (new QRCode($options))->render($data); // -> data:image/webp;base64,...
+$out  = new QRCode($options)->render($data); // -> data:image/webp;base64,...
 
 printf('<img alt="%s" src="%s" />', $alt, $out);
 
@@ -375,7 +375,7 @@
$options->returnResource = true;
 
 /** @var \GdImage $gdImage */
-$gdImage = (new QRCode($options))->render($data);
+$gdImage = new QRCode($options)->render($data);
 
 // do stuff with the GdImage instance...
 $size = imagesx($gdImage);
diff --git a/Built-In-Output/QRImagick.html b/Built-In-Output/QRImagick.html
index 7df5d6863..0458b0ee8 100644
--- a/Built-In-Output/QRImagick.html
+++ b/Built-In-Output/QRImagick.html
@@ -368,7 +368,7 @@
 

Render the output:

$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$out  = (new QRCode($options))->render($data); // -> data:image/webp;base64,...
+$out  = new QRCode($options)->render($data); // -> data:image/webp;base64,...
 
 printf('<img alt="%s" src="%s" />', $alt, $out);
 
@@ -377,7 +377,7 @@
$options->returnResource = true;
 
 /** @var \Imagick $imagick */
-$imagick = (new QRCode($options))->render($data);
+$imagick = new QRCode($options)->render($data);
 
 // do stuff with the Imagick instance...
 $imagick->scaleImage(150, 150, true);
diff --git a/Built-In-Output/QRInterventionImage.html b/Built-In-Output/QRInterventionImage.html
index b82075160..dcc193c12 100644
--- a/Built-In-Output/QRInterventionImage.html
+++ b/Built-In-Output/QRInterventionImage.html
@@ -362,7 +362,7 @@
 

Render the output:

$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$out  = (new QRCode($options))->render($data); // -> data:image/png;base64,...
+$out  = new QRCode($options)->render($data); // -> data:image/png;base64,...
 
 printf('<img alt="%s" src="%s" />', $alt, $out);
 
@@ -371,7 +371,7 @@
$options->returnResource = true;
 
 /** @var \Intervention\Image\Interfaces\ImageInterface $image */
-$image = (new QRCode($options))->render($data);
+$image = new QRCode($options)->render($data);
 
 // do stuff with the ImageInterface instance...
 
diff --git a/Built-In-Output/QRMarkupHTML.html b/Built-In-Output/QRMarkupHTML.html
index 9f480c7e5..805e8fe0a 100644
--- a/Built-In-Output/QRMarkupHTML.html
+++ b/Built-In-Output/QRMarkupHTML.html
@@ -353,7 +353,7 @@ As a general rule: if you plan to display the QR Code in a web browser, you shou
 
<?php
 
 $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$out  = (new QRCode($options))->render($data);
+$out  = new QRCode($options)->render($data);
 
 header('Content-type: text/html');
 
diff --git a/Built-In-Output/QRMarkupSVG.html b/Built-In-Output/QRMarkupSVG.html
index 9f06fd3fb..8672366de 100644
--- a/Built-In-Output/QRMarkupSVG.html
+++ b/Built-In-Output/QRMarkupSVG.html
@@ -372,7 +372,7 @@
 

Render the output:

$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$out  = (new QRCode($options))->render($data); // -> data:image/svg+xml;base64,PD94bWwgdmVyc2...
+$out  = new QRCode($options)->render($data); // -> data:image/svg+xml;base64,PD94bWwgdmVyc2...
 
 printf('<img alt="%s" src="%s" />', $alt, $out);
 
diff --git a/Built-In-Output/QRMarkupXML.html b/Built-In-Output/QRMarkupXML.html index a50a1a03a..62844aa9f 100644 --- a/Built-In-Output/QRMarkupXML.html +++ b/Built-In-Output/QRMarkupXML.html @@ -394,7 +394,7 @@

Render the output:

$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$out  = (new QRCode($options))->render($data); // -> XML, rendered as SVG
+$out  = new QRCode($options)->render($data); // -> XML, rendered as SVG
 
 header('Content-type: application/xml');
 
diff --git a/Built-In-Output/QRStringJSON.html b/Built-In-Output/QRStringJSON.html
index 2d468f87f..990e9a911 100644
--- a/Built-In-Output/QRStringJSON.html
+++ b/Built-In-Output/QRStringJSON.html
@@ -340,7 +340,7 @@
 
 $data   = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
 
-echo (new QRCode($options))->render($data); // -> JSON string
+echo new QRCode($options)->render($data); // -> JSON string
 

The associated JSON schema can be found over at GitHub: qrcode.schema.json

@@ -349,7 +349,7 @@

Previous functionality

The previous versions of php-qrcode (v5 and earlier) just dumped an array representation of the internal matrix, which is equivalent to the following:

-
$matrix = (new QRCode($options))->getQRMatrix(); // -> QRMatrix instance
+
$matrix = new QRCode($options)->getQRMatrix(); // -> QRMatrix instance
 
 // retrieve the internal matrix as an array of booleans
 $json   = json_encode($matrix->getMatrix(true), $jsonFlags);
diff --git a/Built-In-Output/QRStringText.html b/Built-In-Output/QRStringText.html
index c3278f7f2..61d4b1d8f 100644
--- a/Built-In-Output/QRStringText.html
+++ b/Built-In-Output/QRStringText.html
@@ -354,7 +354,7 @@ render in a CLI console, using 
$data   = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
-$qrcode = (new QRCode($options))->render($data);
+$qrcode = new QRCode($options)->render($data);
 
 echo "\n\n$qrcode\n\n";
 
diff --git a/Usage/Advanced-usage.html b/Usage/Advanced-usage.html index 43f2be1b9..ae62f0503 100644 --- a/Usage/Advanced-usage.html +++ b/Usage/Advanced-usage.html @@ -372,7 +372,7 @@ A list with all available // via __toString() $json = (string)$options; -$options = (new QROptions)->fromJSON($json); +$options = new QROptions()->fromJSON($json); // on an existing instance - properties will be overwriten $options->fromJSON($json);
diff --git a/Usage/Installation.html b/Usage/Installation.html index 5669fb631..7ec3676c9 100644 --- a/Usage/Installation.html +++ b/Usage/Installation.html @@ -345,7 +345,7 @@ In case you want to keep using dev-main, specify the hash of a commit to avoid running into unforseen issues, like so: dev-main#cb69751c3bc090a7fdd2f2601bbe10f28d225f10

Version switch

-

If your application supports older PHP versions and uses the basic QRCode syntax (new QRCode)->render($data), then you can add a version switch to your composer.json to allow installing a php-qrcode version that suits the platform it runs on:

+

If your application supports older PHP versions and uses the basic QRCode syntax new QRCode()->render($data), then you can add a version switch to your composer.json to allow installing a php-qrcode version that suits the platform it runs on:

{
 	"require": {
 		"php": "^7.0 || ^8.0",
diff --git a/Usage/Quickstart.html b/Usage/Quickstart.html
index 8a7fbee67..2fab102f8 100644
--- a/Usage/Quickstart.html
+++ b/Usage/Quickstart.html
@@ -340,7 +340,7 @@
 

Create your first QR Code

We want to encode this URI for a mobile authenticator into a QRcode image:

$data   = 'otpauth://totp/test?secret=B3JX4VCVJDVNXNZ5&issuer=chillerlan.net';
-$qrcode = (new QRCode)->render($data);
+$qrcode = new QRCode()->render($data);
 
 // default output is a base64 encoded data URI
 printf('<img src="%s" alt="QR Code" />', $qrcode);
@@ -355,7 +355,7 @@
 
 header('Content-type: image/svg+xml'); // the image type is SVG by default
 
-echo (new QRCode($options))->render($data);
+echo new QRCode($options)->render($data);
 

See Advanced usage for a more in-depth usage guide diff --git a/Usage/Reading-QRCodes.html b/Usage/Reading-QRCodes.html index 6bd679c9b..e321d8be1 100644 --- a/Usage/Reading-QRCodes.html +++ b/Usage/Reading-QRCodes.html @@ -372,7 +372,7 @@ Each LuminanceSourc

The Decoder

The Decoder takes a QROptions instance as parameter, which currently has no use - it is only handed over for possible future uses.

-
$result = (new Decoder($options))->decode($source);
+
$result = new Decoder($options)->decode($source);
 

That is all! The decoder will either return a DecoderResult instance or throw an exception. @@ -399,7 +399,7 @@ it also offers a method that returns a // ...matrix modification... -$output = (new QRCode($options))->renderMatrix($matrix); +$output = new QRCode($options)->renderMatrix($matrix); // ...dump output

diff --git a/_sources/Built-In-Output/QREps.md.txt b/_sources/Built-In-Output/QREps.md.txt index 74ceec275..1d2d900cc 100644 --- a/_sources/Built-In-Output/QREps.md.txt +++ b/_sources/Built-In-Output/QREps.md.txt @@ -36,7 +36,7 @@ Render and save to file: $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; $file = __DIR__.'/qrcode.eps'; -(new QRCode($options))->render($data, $file); +new QRCode($options)->render($data, $file); ``` @@ -46,7 +46,7 @@ Push as file download in a browser: header('Content-type: application/postscript'); header('Content-Disposition: filename="qrcode.eps"'); -echo (new QRCode($options))->render($data); +echo new QRCode($options)->render($data); exit; ``` diff --git a/_sources/Built-In-Output/QRFpdf.md.txt b/_sources/Built-In-Output/QRFpdf.md.txt index c9d6ca0e3..05645a4b6 100644 --- a/_sources/Built-In-Output/QRFpdf.md.txt +++ b/_sources/Built-In-Output/QRFpdf.md.txt @@ -34,7 +34,7 @@ Render the output: ```php $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -$out = (new QRCode($options))->render($data); // -> data:application/pdf;base64,... +$out = new QRCode($options)->render($data); // -> data:application/pdf;base64,... echo $out; ``` @@ -46,7 +46,7 @@ Return the `FPDF` instance (will ignore other output options): $options->returnResource = true; /** @var \FPDF $fpdf */ -$fpdf = (new QRCode($options))->render($data); +$fpdf = new QRCode($options)->render($data); // do stuff with the FPDF instance... diff --git a/_sources/Built-In-Output/QRGdImage.md.txt b/_sources/Built-In-Output/QRGdImage.md.txt index a4853f4fa..ed1d9214c 100644 --- a/_sources/Built-In-Output/QRGdImage.md.txt +++ b/_sources/Built-In-Output/QRGdImage.md.txt @@ -46,7 +46,7 @@ Render the output: ```php $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -$out = (new QRCode($options))->render($data); // -> data:image/webp;base64,... +$out = new QRCode($options)->render($data); // -> data:image/webp;base64,... printf('%s', $alt, $out); ``` @@ -58,7 +58,7 @@ Return the `GdImage` instance (will ignore other output options): $options->returnResource = true; /** @var \GdImage $gdImage */ -$gdImage = (new QRCode($options))->render($data); +$gdImage = new QRCode($options)->render($data); // do stuff with the GdImage instance... $size = imagesx($gdImage); diff --git a/_sources/Built-In-Output/QRImagick.md.txt b/_sources/Built-In-Output/QRImagick.md.txt index 433362c65..701e78118 100644 --- a/_sources/Built-In-Output/QRImagick.md.txt +++ b/_sources/Built-In-Output/QRImagick.md.txt @@ -49,7 +49,7 @@ Render the output: ```php $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -$out = (new QRCode($options))->render($data); // -> data:image/webp;base64,... +$out = new QRCode($options)->render($data); // -> data:image/webp;base64,... printf('%s', $alt, $out); ``` @@ -61,7 +61,7 @@ Return the `Imagick` instance (will ignore other output options): $options->returnResource = true; /** @var \Imagick $imagick */ -$imagick = (new QRCode($options))->render($data); +$imagick = new QRCode($options)->render($data); // do stuff with the Imagick instance... $imagick->scaleImage(150, 150, true); diff --git a/_sources/Built-In-Output/QRInterventionImage.md.txt b/_sources/Built-In-Output/QRInterventionImage.md.txt index a7f06cd2d..26ae361f8 100644 --- a/_sources/Built-In-Output/QRInterventionImage.md.txt +++ b/_sources/Built-In-Output/QRInterventionImage.md.txt @@ -44,7 +44,7 @@ Render the output: ```php $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -$out = (new QRCode($options))->render($data); // -> data:image/png;base64,... +$out = new QRCode($options)->render($data); // -> data:image/png;base64,... printf('%s', $alt, $out); ``` @@ -56,7 +56,7 @@ Return the `ImageInterface` instance (will ignore other output options): $options->returnResource = true; /** @var \Intervention\Image\Interfaces\ImageInterface $image */ -$image = (new QRCode($options))->render($data); +$image = new QRCode($options)->render($data); // do stuff with the ImageInterface instance... diff --git a/_sources/Built-In-Output/QRMarkupHTML.md.txt b/_sources/Built-In-Output/QRMarkupHTML.md.txt index 0f3106885..f0521a7c5 100644 --- a/_sources/Built-In-Output/QRMarkupHTML.md.txt +++ b/_sources/Built-In-Output/QRMarkupHTML.md.txt @@ -34,7 +34,7 @@ Output in a HTML document (via PHP): render($data); +$out = new QRCode($options)->render($data); header('Content-type: text/html'); diff --git a/_sources/Built-In-Output/QRMarkupSVG.md.txt b/_sources/Built-In-Output/QRMarkupSVG.md.txt index 082bf5feb..c85fff3fa 100644 --- a/_sources/Built-In-Output/QRMarkupSVG.md.txt +++ b/_sources/Built-In-Output/QRMarkupSVG.md.txt @@ -53,7 +53,7 @@ Render the output: ```php $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -$out = (new QRCode($options))->render($data); // -> data:image/svg+xml;base64,PD94bWwgdmVyc2... +$out = new QRCode($options)->render($data); // -> data:image/svg+xml;base64,PD94bWwgdmVyc2... printf('%s', $alt, $out); ``` diff --git a/_sources/Built-In-Output/QRMarkupXML.md.txt b/_sources/Built-In-Output/QRMarkupXML.md.txt index 8ba20da77..8ae477f2e 100644 --- a/_sources/Built-In-Output/QRMarkupXML.md.txt +++ b/_sources/Built-In-Output/QRMarkupXML.md.txt @@ -78,7 +78,7 @@ Render the output: ```php $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -$out = (new QRCode($options))->render($data); // -> XML, rendered as SVG +$out = new QRCode($options)->render($data); // -> XML, rendered as SVG header('Content-type: application/xml'); diff --git a/_sources/Built-In-Output/QRStringJSON.md.txt b/_sources/Built-In-Output/QRStringJSON.md.txt index 2dbeca522..ae36c2bc4 100644 --- a/_sources/Built-In-Output/QRStringJSON.md.txt +++ b/_sources/Built-In-Output/QRStringJSON.md.txt @@ -16,7 +16,7 @@ header('Content-type: application/json'); $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -echo (new QRCode($options))->render($data); // -> JSON string +echo new QRCode($options)->render($data); // -> JSON string ``` The associated [JSON schema](https://json-schema.org/specification) can be found over at GitHub: [`qrcode.schema.json`](https://github.com/chillerlan/php-qrcode/blob/main/src/Output/qrcode.schema.json) @@ -28,7 +28,7 @@ The previous versions of `php-qrcode` (v5 and earlier) just dumped an array repr which is equivalent to the following: ```php -$matrix = (new QRCode($options))->getQRMatrix(); // -> QRMatrix instance +$matrix = new QRCode($options)->getQRMatrix(); // -> QRMatrix instance // retrieve the internal matrix as an array of booleans $json = json_encode($matrix->getMatrix(true), $jsonFlags); diff --git a/_sources/Built-In-Output/QRStringText.md.txt b/_sources/Built-In-Output/QRStringText.md.txt index 3a9691ddb..8e96470aa 100644 --- a/_sources/Built-In-Output/QRStringText.md.txt +++ b/_sources/Built-In-Output/QRStringText.md.txt @@ -34,7 +34,7 @@ Output: ```php $data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; -$qrcode = (new QRCode($options))->render($data); +$qrcode = new QRCode($options)->render($data); echo "\n\n$qrcode\n\n"; ``` diff --git a/_sources/Usage/Advanced-usage.md.txt b/_sources/Usage/Advanced-usage.md.txt index c3c29eb4f..5ef00931c 100644 --- a/_sources/Usage/Advanced-usage.md.txt +++ b/_sources/Usage/Advanced-usage.md.txt @@ -56,7 +56,7 @@ $json = json_encode($options, JSON_THROW_ON_ERROR); // via __toString() $json = (string)$options; -$options = (new QROptions)->fromJSON($json); +$options = new QROptions()->fromJSON($json); // on an existing instance - properties will be overwriten $options->fromJSON($json); ``` diff --git a/_sources/Usage/Installation.md.txt b/_sources/Usage/Installation.md.txt index 767617c72..5930d0eac 100644 --- a/_sources/Usage/Installation.md.txt +++ b/_sources/Usage/Installation.md.txt @@ -24,7 +24,7 @@ In case you want to keep using `dev-main`, specify the hash of a commit to avoid #### Version switch -If your application supports older PHP versions and uses the basic `QRCode` syntax `(new QRCode)->render($data)`, then you can add a version switch to your `composer.json` to allow installing a `php-qrcode` version that suits the platform it runs on: +If your application supports older PHP versions and uses the basic `QRCode` syntax `new QRCode()->render($data)`, then you can add a version switch to your `composer.json` to allow installing a `php-qrcode` version that suits the platform it runs on: ```json { diff --git a/_sources/Usage/Quickstart.md.txt b/_sources/Usage/Quickstart.md.txt index fb7b67f3f..7c8b8503f 100644 --- a/_sources/Usage/Quickstart.md.txt +++ b/_sources/Usage/Quickstart.md.txt @@ -15,7 +15,7 @@ require_once __DIR__.'/../vendor/autoload.php'; We want to encode this URI for a mobile authenticator into a QRcode image: ```php $data = 'otpauth://totp/test?secret=B3JX4VCVJDVNXNZ5&issuer=chillerlan.net'; -$qrcode = (new QRCode)->render($data); +$qrcode = new QRCode()->render($data); // default output is a base64 encoded data URI printf('QR Code', $qrcode); @@ -33,7 +33,7 @@ $options->outputBase64 = false; // output raw image instead of base64 data URI header('Content-type: image/svg+xml'); // the image type is SVG by default -echo (new QRCode($options))->render($data); +echo new QRCode($options)->render($data); ``` See [Advanced usage](../Usage/Advanced-usage.md) for a more in-depth usage guide diff --git a/_sources/Usage/Reading-QRCodes.md.txt b/_sources/Usage/Reading-QRCodes.md.txt index 3cac2333b..3d8ba4d9b 100644 --- a/_sources/Usage/Reading-QRCodes.md.txt +++ b/_sources/Usage/Reading-QRCodes.md.txt @@ -52,7 +52,7 @@ $source = new GDLuminanceSource($gdimage, $options); The `Decoder` takes a `QROptions` instance as parameter, which currently has no use - it is only handed over for possible future uses. ```php -$result = (new Decoder($options))->decode($source); +$result = new Decoder($options)->decode($source); ``` That is all! The decoder will either return a `DecoderResult` instance or throw an exception. @@ -85,7 +85,7 @@ $matrix = $result->getQRMatrix(); // ...matrix modification... -$output = (new QRCode($options))->renderMatrix($matrix); +$output = new QRCode($options)->renderMatrix($matrix); // ...dump output ```