-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
175 lines (147 loc) · 6.45 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
175 lines (147 loc) · 6.45 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
parameters:
ignoreErrors:
-
message: '#^Parameter \#2 \$force of method CommonDBTM\:\:delete\(\) expects bool, int given\.$#'
identifier: argument.type
count: 1
path: front/connection.form.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: hook.php
-
message: '#^Missing PHPDoc tag @var for global variable \$INJECTABLE_TYPES$#'
identifier: glpi.missingGlobalVarType
count: 1
path: hook.php
-
message: '#^PHPDoc tag @throws with type GlpitestSQLError is not subtype of Throwable$#'
identifier: throws.notThrowable
count: 3
path: hook.php
-
message: '#^Parameter \#1 \$checkitem \(null\) of method GlpiPlugin\\Connections\\Connection\:\:getSpecificMassiveActions\(\) should be compatible with parameter \$checkitem \(CommonDBTM\) of method CommonDBTM\:\:getSpecificMassiveActions\(\)$#'
identifier: method.childParameterType
count: 1
path: src/Connection.php
-
message: '#^Parameter \#1 \$itemtype of method CommonGLPI\:\:addStandardTab\(\) expects class\-string\<CommonGLPI\>, string given\.$#'
identifier: argument.type
count: 1
path: src/Connection.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 2
path: src/Connection.php
-
message: '#^Method GlpiPlugin\\Connections\\ConnectionInjection\:\:addOrUpdateObject\(\) has invalid return type GlpiPlugin\\Connections\\an\.$#'
identifier: class.notFound
count: 1
path: src/ConnectionInjection.php
-
message: '#^Method GlpiPlugin\\Connections\\ConnectionInjection\:\:addOrUpdateObject\(\) should return GlpiPlugin\\Connections\\an but returns array\.$#'
identifier: return.type
count: 1
path: src/ConnectionInjection.php
-
message: '#^Method GlpiPlugin\\Connections\\ConnectionInjection\:\:getOptions\(\) has invalid return type GlpiPlugin\\Connections\\the\.$#'
identifier: class.notFound
count: 1
path: src/ConnectionInjection.php
-
message: '#^Parameter \$options of method GlpiPlugin\\Connections\\ConnectionInjection\:\:addOrUpdateObject\(\) has invalid type GlpiPlugin\\Connections\\options\.$#'
identifier: class.notFound
count: 1
path: src/ConnectionInjection.php
-
message: '#^Parameter \$values of method GlpiPlugin\\Connections\\ConnectionInjection\:\:addOrUpdateObject\(\) has invalid type GlpiPlugin\\Connections\\fields\.$#'
identifier: class.notFound
count: 1
path: src/ConnectionInjection.php
-
message: '#^Return type \(GlpiPlugin\\Connections\\an\) of method GlpiPlugin\\Connections\\ConnectionInjection\:\:addOrUpdateObject\(\) should be compatible with return type \(array\) of method PluginDatainjectionInjectionInterface\:\:addOrUpdateObject\(\)$#'
identifier: method.childReturnType
count: 1
path: src/ConnectionInjection.php
-
message: '#^Method GlpiPlugin\\Connections\\ConnectionRate\:\:transfer\(\) should return int but return statement is missing\.$#'
identifier: return.missing
count: 2
path: src/ConnectionRate.php
-
message: '#^You should not use the `die` function\. It prevents the execution of post\-request/post\-command routines\.$#'
identifier: glpi.forbidExit
count: 1
path: src/ConnectionRate.php
-
message: '#^Method GlpiPlugin\\Connections\\ConnectionType\:\:transfer\(\) should return int but return statement is missing\.$#'
identifier: return.missing
count: 2
path: src/ConnectionType.php
-
message: '#^You should not use the `die` function\. It prevents the execution of post\-request/post\-command routines\.$#'
identifier: glpi.forbidExit
count: 1
path: src/ConnectionType.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: 3
path: src/Connection_Item.php
-
message: '#^Method GlpiPlugin\\Connections\\Connection_Item\:\:getTabNameForItem\(\) never returns array so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: src/Connection_Item.php
-
message: '#^Parameter \#1 \$item of static method GlpiPlugin\\Connections\\Connection_Item\:\:countForConnection\(\) expects GlpiPlugin\\Connections\\Connection, CommonGLPI given\.$#'
identifier: argument.type
count: 1
path: src/Connection_Item.php
-
message: '#^Parameter \#1 \$item of static method GlpiPlugin\\Connections\\Connection_Item\:\:countForItem\(\) expects CommonDBTM, CommonGLPI given\.$#'
identifier: argument.type
count: 1
path: src/Connection_Item.php
-
message: '#^Parameter \#1 \$item of static method GlpiPlugin\\Connections\\Connection_Item\:\:countSupplierForItem\(\) expects CommonDBTM, CommonGLPI given\.$#'
identifier: argument.type
count: 1
path: src/Connection_Item.php
-
message: '#^Parameter \#1 \$item of static method GlpiPlugin\\Connections\\Connection_Item\:\:showForSupplier\(\) expects Supplier, CommonDBTM given\.$#'
identifier: argument.type
count: 1
path: src/Connection_Item.php
-
message: '#^Method GlpiPlugin\\Connections\\GuaranteedConnectionRate\:\:transfer\(\) should return int but return statement is missing\.$#'
identifier: return.missing
count: 2
path: src/GuaranteedConnectionRate.php
-
message: '#^Call to an undefined method CommonGLPI\:\:getField\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Profile.php
-
message: '#^Method GlpiPlugin\\Connections\\Profile\:\:getAllRights\(\) invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 1
path: src/Profile.php
-
message: '#^Method GlpiPlugin\\Connections\\Profile\:\:migrateOneProfile\(\) should return bool but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Profile.php
-
message: '#^Static method GlpiPlugin\\Connections\\Profile\:\:getAllRights\(\) invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 1
path: src/Profile.php
-
message: '#^You should not use the `die` function\. It prevents the execution of post\-request/post\-command routines\.$#'
identifier: glpi.forbidExit
count: 1
path: src/Profile.php