:octocat: phpstan happy

This commit is contained in:
smiley
2024-09-17 17:32:03 +02:00
parent aeb1af558f
commit df18b1d90e
2 changed files with 61 additions and 41 deletions
+20
View File
@@ -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
+41 -41
View File
@@ -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<int, mixed> $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{