Skip to content

Commit

Permalink
Merge pull request #269 from finpension-aless/php84-deprecation-fix
Browse files Browse the repository at this point in the history
QrCode: Fixed 'Implicitly marking parameter  as nullable is deprecate…
  • Loading branch information
sprain authored Dec 6, 2024
2 parents f09a0d9 + 8012990 commit d61a3a3
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 d61a3a3

Please sign in to comment.