diff options
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Data/QRDataAbstract.php')
-rw-r--r-- | vendor/chillerlan/php-qrcode/src/Data/QRDataAbstract.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Data/QRDataAbstract.php b/vendor/chillerlan/php-qrcode/src/Data/QRDataAbstract.php index 72b67b7b9..5d5b3aaf2 100644 --- a/vendor/chillerlan/php-qrcode/src/Data/QRDataAbstract.php +++ b/vendor/chillerlan/php-qrcode/src/Data/QRDataAbstract.php @@ -70,7 +70,7 @@ abstract class QRDataAbstract implements QRDataInterface{ /** * QRDataInterface constructor. */ - public function __construct(SettingsContainerInterface $options, string $data = null){ + public function __construct(SettingsContainerInterface $options, ?string $data = null){ $this->options = $options; if($data !== null){ @@ -100,7 +100,7 @@ abstract class QRDataAbstract implements QRDataInterface{ /** * @inheritDoc */ - public function initMatrix(int $maskPattern, bool $test = null):QRMatrix{ + public function initMatrix(int $maskPattern, ?bool $test = null):QRMatrix{ return (new QRMatrix($this->version, $this->options->eccLevel)) ->init($maskPattern, $test) ->mapData($this->maskECC(), $maskPattern) |