Skip to content

Commit

Permalink
QrCode: Fixed 'Implicitly marking parameter as nullable is deprecated…
Browse files Browse the repository at this point in the history
…, the explicit nullable type must be used instead' deprecation warning.
  • Loading branch information
finpension-aless committed Dec 5, 2024
1 parent f09a0d9 commit 8012990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QrCode/QrCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ final class QrCode
* @return self
* @throws UnsupportedFileExtensionException
*/
public static function create(string $data, string $fileFormat = null, array $unsupportedCharacterReplacements = []): self
public static function create(string $data, ?string $fileFormat = null, array $unsupportedCharacterReplacements = []): self
{
if (null === $fileFormat) {
$fileFormat = self::FILE_FORMAT_SVG;
Expand Down

0 comments on commit 8012990

Please sign in to comment.