diff options
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/QRCode.php')
-rwxr-xr-x | vendor/chillerlan/php-qrcode/src/QRCode.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/QRCode.php b/vendor/chillerlan/php-qrcode/src/QRCode.php index 908030feb..1dad921e4 100755 --- a/vendor/chillerlan/php-qrcode/src/QRCode.php +++ b/vendor/chillerlan/php-qrcode/src/QRCode.php @@ -117,23 +117,23 @@ class QRCode{ * @var string[][] */ public const OUTPUT_MODES = [ - QRMarkup::class => [ + QRMarkup::class => [ self::OUTPUT_MARKUP_SVG, self::OUTPUT_MARKUP_HTML, ], - QRImage::class => [ + QRImage::class => [ self::OUTPUT_IMAGE_PNG, self::OUTPUT_IMAGE_GIF, self::OUTPUT_IMAGE_JPG, ], - QRString::class => [ + QRString::class => [ self::OUTPUT_STRING_JSON, self::OUTPUT_STRING_TEXT, ], QRImagick::class => [ self::OUTPUT_IMAGICK, ], - QRFpdf::class => [ + QRFpdf::class => [ self::OUTPUT_FPDF ] ]; @@ -167,7 +167,7 @@ class QRCode{ * * Sets the options instance, determines the current mb-encoding and sets it to UTF-8 */ - public function __construct(SettingsContainerInterface $options = null){ + public function __construct(?SettingsContainerInterface $options = null){ $this->options = $options ?? new QROptions; } @@ -176,7 +176,7 @@ class QRCode{ * * @return mixed */ - public function render(string $data, string $file = null){ + public function render(string $data, ?string $file = null){ return $this->initOutputInterface($data)->dump($file); } |