mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-09 05:15:49 +00:00
:octocat: omit parentheses around "new" calls
This commit is contained in:
@@ -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);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user