mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-25 03:17:55 +00:00
:octocat: mark nullable types explicitly (https://github.com/chillerlan/php-qrcode/issues/276)
This commit is contained in:
@@ -34,7 +34,7 @@ class QRStringJSON extends QROutputAbstract{
|
||||
* @inheritDoc
|
||||
* @throws \JsonException
|
||||
*/
|
||||
public function dump(string $file = null):string{
|
||||
public function dump(string|null $file = null):string{
|
||||
[$width, $height] = $this->getOutputDimensions();
|
||||
$version = $this->matrix->getVersion();
|
||||
$dimension = $version->getDimension();
|
||||
|
||||
Reference in New Issue
Block a user