diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index ea17038f6..efe744fdf 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -50,11 +50,21 @@ parameters: count: 1 path: examples/custom_output.php + - + message: "#^Parameter \\#1 \\$width of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#" + count: 1 + path: examples/imageWithText.php + - message: "#^Parameter \\#2 \\$color of function imagecolortransparent expects int\\|null, int\\<0, max\\>\\|false given\\.$#" count: 1 path: examples/imageWithText.php + - + message: "#^Parameter \\#2 \\$height of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#" + count: 1 + path: examples/imageWithText.php + - message: "#^Parameter \\#6 \\$color of function imagechar expects int, int\\<0, max\\>\\|false given\\.$#" count: 1 @@ -155,6 +165,16 @@ parameters: count: 1 path: src/Decoder/ReedSolomonDecoder.php + - + message: "#^Parameter \\#1 \\$width of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#" + count: 1 + path: src/Output/QRGdImage.php + + - + message: "#^Parameter \\#2 \\$height of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#" + count: 1 + path: src/Output/QRGdImage.php + - message: "#^Method chillerlan\\\\QRCodeTest\\\\Common\\\\MaskPatternTest\\:\\:assertMask\\(\\) has parameter \\$expected with no value type specified in iterable type array\\.$#" count: 1 diff --git a/src/QROptionsTrait.php b/src/QROptionsTrait.php index 85809cba3..6b7c2a73f 100644 --- a/src/QROptionsTrait.php +++ b/src/QROptionsTrait.php @@ -23,47 +23,47 @@ use const JSON_THROW_ON_ERROR, JSON_UNESCAPED_SLASHES, PHP_EOL; /** * The QRCode plug-in settings & setter functionality * - * @property int $version - * @property int $versionMin - * @property int $versionMax - * @property int $eccLevel - * @property int $maskPattern - * @property bool $addQuietzone - * @property int $quietzoneSize - * @property string $outputInterface - * @property bool $returnResource - * @property string|null $cachefile - * @property bool $outputBase64 - * @property string $eol - * @property mixed $bgColor - * @property bool $invertMatrix - * @property bool $drawLightModules - * @property bool $drawCircularModules - * @property float $circleRadius - * @property array $keepAsSquare - * @property bool $connectPaths - * @property array $excludeFromConnect - * @property array $moduleValues - * @property bool $addLogoSpace - * @property int|null $logoSpaceWidth - * @property int|null $logoSpaceHeight - * @property int|null $logoSpaceStartX - * @property int|null $logoSpaceStartY - * @property int $scale - * @property bool $imageTransparent - * @property mixed $transparencyColor - * @property int $quality - * @property bool $gdImageUseUpscale - * @property string $imagickFormat - * @property string $cssClass - * @property bool $svgAddXmlHeader - * @property string $svgDefs - * @property string $svgPreserveAspectRatio - * @property bool $svgUseFillAttributes - * @property string $textLineStart - * @property int $jsonFlags - * @property string $fpdfMeasureUnit - * @property string|null $xmlStylesheet + * @property int $version + * @property int $versionMin + * @property int $versionMax + * @property int $eccLevel + * @property int $maskPattern + * @property bool $addQuietzone + * @property int $quietzoneSize + * @property string $outputInterface + * @property bool $returnResource + * @property string|null $cachefile + * @property bool $outputBase64 + * @property string $eol + * @property mixed $bgColor + * @property bool $invertMatrix + * @property bool $drawLightModules + * @property bool $drawCircularModules + * @property float $circleRadius + * @property int[] $keepAsSquare + * @property bool $connectPaths + * @property int[] $excludeFromConnect + * @property array $moduleValues + * @property bool $addLogoSpace + * @property int|null $logoSpaceWidth + * @property int|null $logoSpaceHeight + * @property int|null $logoSpaceStartX + * @property int|null $logoSpaceStartY + * @property int $scale + * @property bool $imageTransparent + * @property mixed $transparencyColor + * @property int $quality + * @property bool $gdImageUseUpscale + * @property string $imagickFormat + * @property string $cssClass + * @property bool $svgAddXmlHeader + * @property string $svgDefs + * @property string $svgPreserveAspectRatio + * @property bool $svgUseFillAttributes + * @property string $textLineStart + * @property int $jsonFlags + * @property string $fpdfMeasureUnit + * @property string|null $xmlStylesheet */ trait QROptionsTrait{