Skip to content

Commit df18b1d

Browse files
committed
:octocat: phpstan happy
1 parent aeb1af5 commit df18b1d

File tree

2 files changed

+61
-41
lines changed

2 files changed

+61
-41
lines changed

phpstan-baseline.neon

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,21 @@ parameters:
5050
count: 1
5151
path: examples/custom_output.php
5252

53+
-
54+
message: "#^Parameter \\#1 \\$width of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
55+
count: 1
56+
path: examples/imageWithText.php
57+
5358
-
5459
message: "#^Parameter \\#2 \\$color of function imagecolortransparent expects int\\|null, int\\<0, max\\>\\|false given\\.$#"
5560
count: 1
5661
path: examples/imageWithText.php
5762

63+
-
64+
message: "#^Parameter \\#2 \\$height of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
65+
count: 1
66+
path: examples/imageWithText.php
67+
5868
-
5969
message: "#^Parameter \\#6 \\$color of function imagechar expects int, int\\<0, max\\>\\|false given\\.$#"
6070
count: 1
@@ -155,6 +165,16 @@ parameters:
155165
count: 1
156166
path: src/Decoder/ReedSolomonDecoder.php
157167

168+
-
169+
message: "#^Parameter \\#1 \\$width of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
170+
count: 1
171+
path: src/Output/QRGdImage.php
172+
173+
-
174+
message: "#^Parameter \\#2 \\$height of function imagecreatetruecolor expects int\\<1, max\\>, int given\\.$#"
175+
count: 1
176+
path: src/Output/QRGdImage.php
177+
158178
-
159179
message: "#^Method chillerlan\\\\QRCodeTest\\\\Common\\\\MaskPatternTest\\:\\:assertMask\\(\\) has parameter \\$expected with no value type specified in iterable type array\\.$#"
160180
count: 1

src/QROptionsTrait.php

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -23,47 +23,47 @@
2323
/**
2424
* The QRCode plug-in settings & setter functionality
2525
*
26-
* @property int $version
27-
* @property int $versionMin
28-
* @property int $versionMax
29-
* @property int $eccLevel
30-
* @property int $maskPattern
31-
* @property bool $addQuietzone
32-
* @property int $quietzoneSize
33-
* @property string $outputInterface
34-
* @property bool $returnResource
35-
* @property string|null $cachefile
36-
* @property bool $outputBase64
37-
* @property string $eol
38-
* @property mixed $bgColor
39-
* @property bool $invertMatrix
40-
* @property bool $drawLightModules
41-
* @property bool $drawCircularModules
42-
* @property float $circleRadius
43-
* @property array $keepAsSquare
44-
* @property bool $connectPaths
45-
* @property array $excludeFromConnect
46-
* @property array $moduleValues
47-
* @property bool $addLogoSpace
48-
* @property int|null $logoSpaceWidth
49-
* @property int|null $logoSpaceHeight
50-
* @property int|null $logoSpaceStartX
51-
* @property int|null $logoSpaceStartY
52-
* @property int $scale
53-
* @property bool $imageTransparent
54-
* @property mixed $transparencyColor
55-
* @property int $quality
56-
* @property bool $gdImageUseUpscale
57-
* @property string $imagickFormat
58-
* @property string $cssClass
59-
* @property bool $svgAddXmlHeader
60-
* @property string $svgDefs
61-
* @property string $svgPreserveAspectRatio
62-
* @property bool $svgUseFillAttributes
63-
* @property string $textLineStart
64-
* @property int $jsonFlags
65-
* @property string $fpdfMeasureUnit
66-
* @property string|null $xmlStylesheet
26+
* @property int $version
27+
* @property int $versionMin
28+
* @property int $versionMax
29+
* @property int $eccLevel
30+
* @property int $maskPattern
31+
* @property bool $addQuietzone
32+
* @property int $quietzoneSize
33+
* @property string $outputInterface
34+
* @property bool $returnResource
35+
* @property string|null $cachefile
36+
* @property bool $outputBase64
37+
* @property string $eol
38+
* @property mixed $bgColor
39+
* @property bool $invertMatrix
40+
* @property bool $drawLightModules
41+
* @property bool $drawCircularModules
42+
* @property float $circleRadius
43+
* @property int[] $keepAsSquare
44+
* @property bool $connectPaths
45+
* @property int[] $excludeFromConnect
46+
* @property array<int, mixed> $moduleValues
47+
* @property bool $addLogoSpace
48+
* @property int|null $logoSpaceWidth
49+
* @property int|null $logoSpaceHeight
50+
* @property int|null $logoSpaceStartX
51+
* @property int|null $logoSpaceStartY
52+
* @property int $scale
53+
* @property bool $imageTransparent
54+
* @property mixed $transparencyColor
55+
* @property int $quality
56+
* @property bool $gdImageUseUpscale
57+
* @property string $imagickFormat
58+
* @property string $cssClass
59+
* @property bool $svgAddXmlHeader
60+
* @property string $svgDefs
61+
* @property string $svgPreserveAspectRatio
62+
* @property bool $svgUseFillAttributes
63+
* @property string $textLineStart
64+
* @property int $jsonFlags
65+
* @property string $fpdfMeasureUnit
66+
* @property string|null $xmlStylesheet
6767
*/
6868
trait QROptionsTrait{
6969

0 commit comments

Comments
 (0)