mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-10 22:06:01 +00:00
:octocat: omit parentheses around "new" calls
This commit is contained in:
@@ -47,7 +47,7 @@ $options->svgDefs = '
|
||||
]]></style>';
|
||||
|
||||
|
||||
$qrcode = (new QRCode($options))->addByteSegment('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
$qrcode = new QRCode($options)->addByteSegment('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
|
||||
// render the SVG
|
||||
$svg_raw = $qrcode->render();
|
||||
|
||||
Reference in New Issue
Block a user