:octocat: omit parentheses around "new" calls

This commit is contained in:
smiley
2026-03-17 19:05:34 +01:00
parent 3bfa0be1d5
commit 9a38501f5b
59 changed files with 95 additions and 95 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ class SVGConvert extends QRMarkupSVG{
if($base64){
// use finfo to guess the mime type
$mime = (new finfo(FILEINFO_MIME_TYPE))->buffer($imageData);
$mime = new finfo(FILEINFO_MIME_TYPE)->buffer($imageData);
if($mime === false){
throw new QRCodeOutputException('unable to detect mime type');
@@ -121,7 +121,7 @@ $options->svgDefs = '
// render the SVG and convert to the desired ImageMagick format
$image = (new QRCode($options))->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
$image = new QRCode($options)->render('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
header('Content-type: image/png');