From 63409f50a31d5314bdb9796a4c3f77f13b7fb1cd Mon Sep 17 00:00:00 2001 From: Application-drop-up Date: Mon, 26 Jan 2026 23:14:34 +0900 Subject: [PATCH] fix: allow null filename in QR generator --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.php b/src/Generator.php index 4ada416..18bd1d3 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -166,7 +166,7 @@ public function __call($method, array $arguments) * @throws WriterException * @throws InvalidArgumentException */ - public function generate(string $text, string $filename = null) + public function generate(string $text, ?string $filename = null) { $qrCode = $this->getWriter($this->getRenderer())->writeString($text, $this->encoding, $this->errorCorrection);