From 089e69be4b4727daf404bd70b8a5c32136c0150e Mon Sep 17 00:00:00 2001 From: codemasher Date: Wed, 4 Dec 2019 19:13:51 +0100 Subject: [PATCH] :sparkles: initialize vars --- src/QROptionsTrait.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/QROptionsTrait.php b/src/QROptionsTrait.php index dbf6ffe29..28c72bd57 100644 --- a/src/QROptionsTrait.php +++ b/src/QROptionsTrait.php @@ -74,12 +74,12 @@ trait QROptionsTrait{ /** * the FQCN of the custom QROutputInterface if $outputType is set to QRCode::OUTPUT_CUSTOM */ - protected string $outputInterface; + protected ?string $outputInterface = null; /** * /path/to/cache.file */ - protected string $cachefile; + protected ?string $cachefile = null; /** * newline string [HTML, SVG, TEXT] @@ -95,7 +95,7 @@ trait QROptionsTrait{ /** * a common css class */ - protected string $cssClass; + protected string $cssClass = ''; /** * SVG opacity @@ -116,7 +116,7 @@ trait QROptionsTrait{ * * @see https://css-tricks.com/scale-svg/#article-header-id-3 */ - protected int $svgViewBoxSize; + protected ?int $svgViewBoxSize = null; /** * string substitute for dark @@ -177,7 +177,7 @@ trait QROptionsTrait{ * * @see \ImagickPixel::__construct() */ - protected string $imagickBG; + protected ?string $imagickBG = null; /** * Module values map @@ -185,7 +185,7 @@ trait QROptionsTrait{ * HTML, IMAGICK: #ABCDEF, cssname, rgb(), rgba()... * IMAGE: [63, 127, 255] // R, G, B */ - protected array $moduleValues; + protected ?array $moduleValues = null; /** * clamp min/max version number