Skip to content

Commit f13300c

Browse files
committed
🚿
1 parent f29cd76 commit f13300c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/custom_output.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ public function dump(string $file = null):string{
7171
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
7272

7373
// invoke the QROutputInterface manually
74+
// please note that an QROutputInterface invoked this way might become unusable after calling dump().
75+
// the clean way would be to extend the QRCode class to ensure a new QROutputInterface instance on each call to render().
7476
$options = new QROptions([
7577
'version' => 5,
7678
'eccLevel' => EccLevel::L,

src/Output/QROutputAbstract.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ abstract class QROutputAbstract implements QROutputInterface{
5858
* QROutputAbstract constructor.
5959
*/
6060
public function __construct(SettingsContainerInterface $options, QRMatrix $matrix){
61-
$this->options = $options;
62-
$this->matrix = $matrix;
61+
$this->options = $options;
62+
$this->matrix = $matrix;
6363

6464
$this->setMatrixDimensions();
6565
$this->setModuleValues();

0 commit comments

Comments
 (0)