forked from phptal/PHPTAL
-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan-baseline.neon
207 lines (166 loc) · 7.67 KB
/
phpstan-baseline.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
parameters:
ignoreErrors:
-
message: "#^Method PhpTal\\\\Context\\:\\:popContext\\(\\) should return PhpTal\\\\Context but returns PhpTal\\\\Context\\|null\\.$#"
count: 1
path: src/Context.php
-
message: "#^Offset numeric\\-string does not exist on string\\.$#"
count: 1
path: src/Context.php
-
message: "#^Property PhpTal\\\\Context\\:\\:\\$_slots \\(array\\<string, array\\{\\(callable\\(\\)\\: string\\)\\|callable\\-string, PhpTal\\\\PhpTalInterface, PhpTal\\\\PhpTalInterface\\}\\|string\\>\\) does not accept array\\<string, array\\{\\(callable\\(\\)\\: string\\)\\|callable\\-string, PhpTal\\\\PhpTalInterface, PhpTal\\\\PhpTalInterface\\}\\|string\\>\\|null\\.$#"
count: 1
path: src/Context.php
-
message: "#^Method PhpTal\\\\Dom\\\\Attr\\:\\:getOverwrittenVariableName\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Dom/Attr.php
-
message: "#^Cannot call method getLocalName\\(\\) on PhpTal\\\\Dom\\\\Element\\|null\\.$#"
count: 1
path: src/Dom/CDATASection.php
-
message: "#^Cannot call method getNamespaceURI\\(\\) on PhpTal\\\\Dom\\\\Element\\|null\\.$#"
count: 1
path: src/Dom/CDATASection.php
-
message: "#^Method PhpTal\\\\Dom\\\\Node\\:\\:getSourceFile\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Dom/Node.php
-
message: "#^Method PhpTal\\\\Dom\\\\Node\\:\\:getSourceLine\\(\\) should return int but returns int\\|null\\.$#"
count: 1
path: src/Dom/Node.php
-
message: "#^Method PhpTal\\\\Dom\\\\Node\\:\\:getValueEscaped\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Dom/Node.php
-
message: "#^Cannot call method appendChild\\(\\) on PhpTal\\\\Dom\\\\Element\\|null\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Cannot call method getQualifiedName\\(\\) on PhpTal\\\\Dom\\\\Element\\|null\\.$#"
count: 3
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Cannot call method getSourceLine\\(\\) on PhpTal\\\\Dom\\\\Element\\|null\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Method PhpTal\\\\Dom\\\\PHPTALDocumentBuilder\\:\\:getResult\\(\\) should return PhpTal\\\\Dom\\\\Element but returns PhpTal\\\\Dom\\\\Element\\|null\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Parameter \\#2 \\$encoding of class PhpTal\\\\Dom\\\\CDATASection constructor expects string, string\\|null given\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Parameter \\#2 \\$encoding of class PhpTal\\\\Dom\\\\Comment constructor expects string, string\\|null given\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Parameter \\#2 \\$encoding of class PhpTal\\\\Dom\\\\DocumentType constructor expects string, string\\|null given\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Parameter \\#2 \\$encoding of class PhpTal\\\\Dom\\\\ProcessingInstruction constructor expects string, string\\|null given\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Parameter \\#2 \\$encoding of class PhpTal\\\\Dom\\\\Text constructor expects string, string\\|null given\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Parameter \\#4 \\$encoding of class PhpTal\\\\Dom\\\\Attr constructor expects string, string\\|null given\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Property PhpTal\\\\Dom\\\\DocumentBuilder\\:\\:\\$stack \\(array\\<PhpTal\\\\Dom\\\\Element\\>\\) does not accept array\\<PhpTal\\\\Dom\\\\Element\\|null\\>\\.$#"
count: 1
path: src/Dom/PHPTALDocumentBuilder.php
-
message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/Dom/SaxXmlParser.php
-
message: "#^Cannot access offset 0\\|int\\<2, max\\> on list\\<string\\>\\|false\\.$#"
count: 2
path: src/Dom/SaxXmlParser.php
-
message: "#^Parameter \\#1 \\$m of static method PhpTal\\\\Dom\\\\SaxXmlParser\\:\\:convertBytesToEntities\\(\\) expects array\\<int, string\\>, array\\<int\\|string, string\\> given\\.$#"
count: 1
path: src/Dom/SaxXmlParser.php
-
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\<int\\<0, max\\>, string\\>\\|false given\\.$#"
count: 1
path: src/Dom/SaxXmlParser.php
-
message: "#^Argument of an invalid type array\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/Exception/TemplateException.php
-
message: "#^Trying to invoke string but it might not be a callable\\.$#"
count: 2
path: src/PHPTAL.php
-
message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and array\\<string\\>\\|string results in an error\\.$#"
count: 1
path: src/Php/Attribute/I18N/Translate.php
-
message: "#^PHPDoc tag @var with type PhpTal\\\\Dom\\\\Node is not subtype of native type mixed\\.$#"
count: 1
path: src/Php/Attribute/METAL/FillSlot.php
-
message: "#^Parameter \\#1 \\$condition of method PhpTal\\\\Php\\\\CodeWriter\\:\\:doIf\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/Php/Attribute/PHPTAL/Id.php
-
message: "#^Parameter \\#1 \\$mode of method PhpTal\\\\Php\\\\CodeWriter\\:\\:setTalesMode\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/Php/Attribute/PHPTAL/Tales.php
-
message: "#^Property PhpTal\\\\Php\\\\Attribute\\\\TAL\\\\Attributes\\:\\:\\$default_escaped \\(string\\|false\\) does not accept string\\|null\\.$#"
count: 1
path: src/Php/Attribute/TAL/Attributes.php
-
message: "#^Property PhpTal\\\\Php\\\\Attribute\\\\TAL\\\\Define\\:\\:\\$defineScope \\(string\\) does not accept string\\|false\\.$#"
count: 1
path: src/Php/Attribute/TAL/Define.php
-
message: "#^Binary operation \"\\.\" between non\\-falsy\\-string and array\\<string\\>\\|string results in an error\\.$#"
count: 1
path: src/Php/Attribute/TAL/OmitTag.php
-
message: "#^Parameter \\#2 \\$code of method PhpTal\\\\Php\\\\Attribute\\:\\:doEchoAttribute\\(\\) expects string, array\\<string\\>\\|string given\\.$#"
count: 1
path: src/Php/Attribute/TAL/OnError.php
-
message: "#^Binary operation \"\\.\" between 'new \\\\\\\\PhpTal…' and array\\<string\\>\\|string results in an error\\.$#"
count: 1
path: src/Php/Attribute/TAL/Repeat.php
-
message: "#^Parameter \\#2 \\$callback of function preg_replace_callback expects callable\\(array\\<int\\|string, string\\>\\)\\: string, Closure\\(array\\<int, string\\>\\)\\: string given\\.$#"
count: 2
path: src/Php/State.php
-
message: "#^Instanceof between mixed and DOMNodeList will always evaluate to false\\.$#"
count: 1
path: src/RepeatController.php
-
message: "#^Method PhpTal\\\\RepeatController\\:\\:length\\(\\) should return int\\|null but returns int\\|string\\.$#"
count: 1
path: src/RepeatController.php
-
message: "#^Property PhpTal\\\\RepeatController\\:\\:\\$iterator \\(Iterator\\<mixed, mixed\\>\\) does not accept Traversable\\<mixed, mixed\\>\\.$#"
count: 1
path: src/RepeatController.php
-
message: "#^Property PhpTal\\\\RepeatControllerGroups\\:\\:\\$cache \\(array\\<string, string\\>\\) does not accept array\\<string, bool\\|string\\>\\.$#"
count: 3
path: src/RepeatControllerGroups.php
-
message: "#^Method PhpTal\\\\TalesRegistry\\:\\:getCallback\\(\\) should return \\(callable\\(string, bool\\)\\: mixed\\)\\|null but returns array\\{class\\-string, string\\}\\|\\(callable\\(string, bool\\)\\: mixed\\)\\.$#"
count: 1
path: src/TalesRegistry.php