mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-08 12:55:59 +00:00
:octocat: omit parentheses around "new" calls
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ $options->moduleValues = [
|
||||
];
|
||||
|
||||
|
||||
$out = (new QRCode($options))->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
$out = new QRCode($options)->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
|
||||
|
||||
if(PHP_SAPI !== 'cli'){
|
||||
header('Content-type: application/pdf');
|
||||
|
||||
Reference in New Issue
Block a user