mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-06 20:07:56 +00:00
:octocat: omit parentheses around "new" calls
This commit is contained in:
@@ -150,7 +150,7 @@ $options = new QROptions([
|
||||
]);
|
||||
|
||||
|
||||
$img = (new QRCode($options))->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
$img = new QRCode($options)->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
|
||||
header('Content-type: image/png');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user