:octocat: mark nullable types explicitly (https://github.com/chillerlan/php-qrcode/issues/276)

This commit is contained in:
smiley
2024-07-17 10:19:31 +02:00
parent a702ac3193
commit 1a8e1ffd2b
31 changed files with 70 additions and 70 deletions
+1 -1
View File
@@ -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();