Repository navigation
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
199 lines (167 loc) · 5.74 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
199 lines (167 loc) · 5.74 KB
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
parameters:
ignoreErrors:
-
message: '#^Parameter \#2 \$force of method CommonDBTM\:\:delete\(\) expects bool, int given\.$#'
identifier: argument.type
count: 1
path: front/addressing.form.php
-
message: '#^Parameter \#2 \$force of method CommonDBTM\:\:delete\(\) expects bool, int given\.$#'
identifier: argument.type
count: 1
path: front/filter.form.php
-
message: '#^Function plugin_addressing_addOrderBy\(\) should return string but return statement is missing\.$#'
identifier: return.missing
count: 1
path: hook.php
-
message: '#^Missing PHPDoc tag @var for global variable \$INJECTABLE_TYPES$#'
identifier: glpi.missingGlobalVarType
count: 1
path: hook.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: hook.php
-
message: '#^Call to an undefined method CommonGLPI\:\:showReport\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Addressing.php
-
message: '#^Comparison operation "\>" between 0 and 0 is always false\.$#'
identifier: greater.alwaysFalse
count: 1
path: src/Addressing.php
-
message: '#^Instantiating an object from an unrestricted dynamic string is forbidden \(see https\://github\.com/glpi\-project/phpstan\-glpi\?tab\=readme\-ov\-file\#forbiddynamicinstantiationrule\)\.$#'
identifier: glpi.forbidDynamicInstantiation
count: 1
path: src/Addressing.php
-
message: '#^Method GlpiPlugin\\Addressing\\Addressing\:\:cleanDBonPurge\(\) has invalid return type GlpiPlugin\\Addressing\\nothing\.$#'
identifier: class.notFound
count: 1
path: src/Addressing.php
-
message: '#^Method GlpiPlugin\\Addressing\\Addressing\:\:cleanDBonPurge\(\) should return GlpiPlugin\\Addressing\\nothing but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Addressing.php
-
message: '#^PHPDoc tag @param has invalid value \(value the selected value\)\: Unexpected token "the", expected variable at offset 152 on line 5$#'
identifier: phpDoc.parseError
count: 1
path: src/Addressing.php
-
message: '#^PHPDoc tag @throws with type GlpitestSQLError is not subtype of Throwable$#'
identifier: throws.notThrowable
count: 1
path: src/Addressing.php
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
count: 3
path: src/Addressing.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: src/Addressing.php
-
message: '#^PHPDoc tag @param has invalid value \(array\| \$options\)\: Unexpected token "\$options", expected type at offset 152 on line 5$#'
identifier: phpDoc.parseError
count: 1
path: src/AddressingInjection.php
-
message: '#^PHPDoc tag @param has invalid value \(array\| \$values\)\: Unexpected token "\$values", expected type at offset 123 on line 4$#'
identifier: phpDoc.parseError
count: 1
path: src/AddressingInjection.php
-
message: '#^Method GlpiPlugin\\Addressing\\Config\:\:showForm\(\) should return bool but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Config.php
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
count: 2
path: src/Config.php
-
message: '#^Access to an undefined property CommonGLPI\:\:\$fields\.$#'
identifier: property.notFound
count: 1
path: src/Filter.php
-
message: '#^Method GlpiPlugin\\Addressing\\Ping_Equipment\:\:ping\(\) should return array but returns false\.$#'
identifier: return.type
count: 1
path: src/Ping_Equipment.php
-
message: '#^Method GlpiPlugin\\Addressing\\Ping_Equipment\:\:ping\(\) should return array but returns true\.$#'
identifier: return.type
count: 5
path: src/Ping_Equipment.php
-
message: '#^Result of && is always false\.$#'
identifier: booleanAnd.alwaysFalse
count: 1
path: src/Ping_Equipment.php
-
message: '#^Variable \$nb in isset\(\) always exists and is not nullable\.$#'
identifier: isset.variable
count: 5
path: src/Ping_Equipment.php
-
message: '#^Call to an undefined method CommonGLPI\:\:getField\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Profile.php
-
message: '#^If condition is always false\.$#'
identifier: if.alwaysFalse
count: 1
path: src/Report.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
count: 2
path: src/Report.php
-
message: '#^Parameter \#1 \$odd of static method GlpiPlugin\\Addressing\\Report\:\:showNewLine\(\) expects bool, int\<0, 1\>\|string given\.$#'
identifier: argument.type
count: 1
path: src/Report.php
-
message: '#^Parameter \#1 \$odd of static method GlpiPlugin\\Addressing\\Report\:\:showNewLine\(\) expects bool, string given\.$#'
identifier: argument.type
count: 4
path: src/Report.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
count: 4
path: src/Report.php
-
message: '#^Static method Glpi\\Search\\Output\\HTMLSearchOutput\:\:showEndLine\(\) invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 5
path: src/Report.php
-
message: '#^Variable \$params in isset\(\) always exists and is not nullable\.$#'
identifier: isset.variable
count: 7
path: src/Report.php
-
message: '#^Variable \$ping_date might not be defined\.$#'
identifier: variable.undefined
count: 2
path: src/Report.php
-
message: '#^PHPDoc tag @return has invalid value \(\)\: Unexpected token "\\n ", expected type at offset 71 on line 6$#'
identifier: phpDoc.parseError
count: 1
path: src/ReserveIp.php