Skip to content

Commit 832d515

Browse files
authored
Merge branch 'main' into bugfix/annotation-name
2 parents 3020056 + 571febb commit 832d515

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

config/phpstan-baseline.neon

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ parameters:
1212
count: 1
1313
path: ../src/CSSList/AtRuleBlockList.php
1414

15+
-
16+
message: '#^Parameter &\$result by\-ref type of method Sabberworm\\CSS\\CSSList\\CSSBlockList\:\:allSelectors\(\) expects array\<int, Sabberworm\\CSS\\Property\\Selector\>, array\<int, Sabberworm\\CSS\\Property\\Selector\|string\> given\.$#'
17+
identifier: parameterByRef.type
18+
count: 2
19+
path: ../src/CSSList/CSSBlockList.php
20+
21+
-
22+
message: '#^Parameter &\$result by\-ref type of method Sabberworm\\CSS\\CSSList\\CSSBlockList\:\:allValues\(\) expects array\<int, Sabberworm\\CSS\\Value\\Value\>, array\<int, Sabberworm\\CSS\\CSSList\\CSSList\|Sabberworm\\CSS\\Value\\Value\> given\.$#'
23+
identifier: parameterByRef.type
24+
count: 1
25+
path: ../src/CSSList/CSSBlockList.php
26+
1527
-
1628
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:safely\(\)\.$#'
1729
identifier: method.notFound
@@ -78,18 +90,36 @@ parameters:
7890
count: 1
7991
path: ../src/Property/CSSNamespace.php
8092

93+
-
94+
message: '#^Return type \(array\<int, string\>\) of method Sabberworm\\CSS\\Property\\CSSNamespace\:\:atRuleArgs\(\) should be compatible with return type \(string\|null\) of method Sabberworm\\CSS\\Property\\AtRule\:\:atRuleArgs\(\)$#'
95+
identifier: method.childReturnType
96+
count: 1
97+
path: ../src/Property/CSSNamespace.php
98+
8199
-
82100
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
83101
identifier: method.notFound
84102
count: 1
85103
path: ../src/Property/Charset.php
86104

105+
-
106+
message: '#^Method Sabberworm\\CSS\\Property\\Charset\:\:atRuleArgs\(\) should return string but returns Sabberworm\\CSS\\Value\\CSSString\.$#'
107+
identifier: return.type
108+
count: 1
109+
path: ../src/Property/Charset.php
110+
87111
-
88112
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
89113
identifier: method.notFound
90114
count: 1
91115
path: ../src/Property/Import.php
92116

117+
-
118+
message: '#^Return type \(array\<int, Sabberworm\\CSS\\Value\\URL\|string\>\) of method Sabberworm\\CSS\\Property\\Import\:\:atRuleArgs\(\) should be compatible with return type \(string\|null\) of method Sabberworm\\CSS\\Property\\AtRule\:\:atRuleArgs\(\)$#'
119+
identifier: method.childReturnType
120+
count: 1
121+
path: ../src/Property/Import.php
122+
93123
-
94124
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:comments\(\)\.$#'
95125
identifier: method.notFound
@@ -144,6 +174,12 @@ parameters:
144174
count: 1
145175
path: ../src/RuleSet/DeclarationBlock.php
146176

177+
-
178+
message: '#^Argument of an invalid type Sabberworm\\CSS\\Rule\\Rule supplied for foreach, only iterables are supported\.$#'
179+
identifier: foreach.nonIterable
180+
count: 2
181+
path: ../src/RuleSet/RuleSet.php
182+
147183
-
148184
message: '#^Call to an undefined method Sabberworm\\CSS\\OutputFormat\:\:removeLastSemicolon\(\)\.$#'
149185
identifier: method.notFound
@@ -222,4 +258,3 @@ parameters:
222258
count: 1
223259
path: ../src/Value/ValueList.php
224260

225-

config/phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parameters:
66
# Don't be overly greedy on machines with more CPU's to be a good neighbor especially on CI
77
maximumNumberOfProcesses: 5
88

9-
level: 2
9+
level: 3
1010

1111
paths:
1212
- %currentWorkingDirectory%/bin/

0 commit comments

Comments
 (0)