: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
+1 -1
View File
@@ -56,7 +56,7 @@ $json = json_encode($options, JSON_THROW_ON_ERROR);
// via __toString()
$json = (string)$options;
$options = (new QROptions)->fromJSON($json);
$options = new QROptions()->fromJSON($json);
// on an existing instance - properties will be overwriten
$options->fromJSON($json);
```