-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphpstan-baseline.neon
260 lines (217 loc) · 13.5 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
parameters:
ignoreErrors:
-
message: '#^Call to an undefined method Symfony\\Component\\HttpFoundation\\Session\\SessionInterface\:\:getFlashBag\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Action/ResetAction.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Admin\\Model\\GroupAdmin\:\:__construct\(\) has parameter \$groupManager with generic interface Nucleos\\UserBundle\\Model\\GroupManager but does not specify its types\: GroupTemplate$#'
identifier: missingType.generics
count: 1
path: src/Admin/Model/GroupAdmin.php
-
message: '#^Property Nucleos\\UserAdminBundle\\Admin\\Model\\GroupAdmin\:\:\$groupManager with generic interface Nucleos\\UserBundle\\Model\\GroupManager does not specify its types\: GroupTemplate$#'
identifier: missingType.generics
count: 1
path: src/Admin/Model/GroupAdmin.php
-
message: '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition\:\:children\(\)\.$#'
identifier: method.notFound
count: 4
path: src/DependencyInjection/Configuration.php
-
message: '#^Call to function is_subclass_of\(\) with ''Nucleos\\\\UserAdminBundle\\\\Controller\\\\UserCRUDController'' and ''Symfony\\\\Contracts\\\\Service\\\\ServiceSubscriberInterface'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/DependencyInjection/NucleosUserAdminExtension.php
-
message: '#^Method Nucleos\\UserAdminBundle\\DependencyInjection\\NucleosUserAdminExtension\:\:configureAdminClass\(\) has parameter \$config with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/DependencyInjection/NucleosUserAdminExtension.php
-
message: '#^Method Nucleos\\UserAdminBundle\\DependencyInjection\\NucleosUserAdminExtension\:\:configureAvatar\(\) has parameter \$config with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/DependencyInjection/NucleosUserAdminExtension.php
-
message: '#^Method Nucleos\\UserAdminBundle\\DependencyInjection\\NucleosUserAdminExtension\:\:configureController\(\) has parameter \$config with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/DependencyInjection/NucleosUserAdminExtension.php
-
message: '#^Method Nucleos\\UserAdminBundle\\DependencyInjection\\NucleosUserAdminExtension\:\:configureTranslationDomain\(\) has parameter \$config with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/DependencyInjection/NucleosUserAdminExtension.php
-
message: '#^Method Nucleos\\UserAdminBundle\\DependencyInjection\\NucleosUserAdminExtension\:\:fixImpersonating\(\) has parameter \$config with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/DependencyInjection/NucleosUserAdminExtension.php
-
message: '#^Method Nucleos\\UserAdminBundle\\DependencyInjection\\NucleosUserAdminExtension\:\:fixImpersonating\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/DependencyInjection/NucleosUserAdminExtension.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Form\\Transformer\\RestoreRolesTransformer\:\:reverseTransform\(\) never returns null so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: src/Form/Transformer/RestoreRolesTransformer.php
-
message: '#^Class Nucleos\\UserAdminBundle\\Form\\Type\\GroupType extends generic class Symfony\\Component\\Form\\AbstractType but does not specify its types\: TData$#'
identifier: missingType.generics
count: 1
path: src/Form/Type/GroupType.php
-
message: '#^Strict comparison using \=\=\= between false and array\<\(int\|string\)\> will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Form/Type/RolesMatrixType.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Security\\EditableRolesBuilder\:\:__construct\(\) has parameter \$rolesHierarchy with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Security/EditableRolesBuilder.php
-
message: '#^Property Nucleos\\UserAdminBundle\\Security\\EditableRolesBuilder\:\:\$rolesHierarchy type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Security/EditableRolesBuilder.php
-
message: '#^Call to function is_array\(\) with list\<array\{admin\: string, roles\: list\<string\>, route_absolute\: bool, route_params\: array\<string, string\>\}\|array\{label\: string, roles\: list\<string\>, route\: string, route_absolute\: bool, route_params\: array\<string, string\>\}\> will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Security/RolesBuilder/AdminRolesBuilder.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\AdminRolesBuilder\:\:getRoles\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Security/RolesBuilder/AdminRolesBuilder.php
-
message: '#^Parameter \#1 \$admin of method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\AdminRolesBuilder\:\:getAdminLabel\(\) expects Sonata\\AdminBundle\\Admin\\AdminInterface\<Nucleos\\UserBundle\\Model\\UserInterface\>, Sonata\\AdminBundle\\Admin\\AdminInterface\<object\> given\.$#'
identifier: argument.type
count: 1
path: src/Security/RolesBuilder/AdminRolesBuilder.php
-
message: '#^Parameter \#1 \$admin of method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\AdminRolesBuilder\:\:getGroupLabel\(\) expects Sonata\\AdminBundle\\Admin\\AdminInterface\<Nucleos\\UserBundle\\Model\\UserInterface\>, Sonata\\AdminBundle\\Admin\\AdminInterface\<object\> given\.$#'
identifier: argument.type
count: 1
path: src/Security/RolesBuilder/AdminRolesBuilder.php
-
message: '#^Parameter \#1 \$admin of method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\AdminRolesBuilder\:\:isMaster\(\) expects Sonata\\AdminBundle\\Admin\\AdminInterface\<Nucleos\\UserBundle\\Model\\UserInterface\>, Sonata\\AdminBundle\\Admin\\AdminInterface\<object\> given\.$#'
identifier: argument.type
count: 1
path: src/Security/RolesBuilder/AdminRolesBuilder.php
-
message: '#^Parameter \#1 \$items of method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\AdminRolesBuilder\:\:hasGroupAdmin\(\) expects array\<string, mixed\>, list\<array\<string, array\<int\|string, string\>\|bool\|string\>\> given\.$#'
identifier: argument.type
count: 1
path: src/Security/RolesBuilder/AdminRolesBuilder.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\ExpandableRolesBuilderInterface\:\:getExpandedRoles\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Security/RolesBuilder/ExpandableRolesBuilderInterface.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\RolesBuilderInterface\:\:getRoles\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Security/RolesBuilder/RolesBuilderInterface.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\SecurityRolesBuilder\:\:getSecurityRoles\(\) has parameter \$hierarchy with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Security/RolesBuilder/SecurityRolesBuilder.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Security\\RolesBuilder\\SecurityRolesBuilder\:\:recursiveArraySearch\(\) has parameter \$roles with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Security/RolesBuilder/SecurityRolesBuilder.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Tests\\Action\\LoginActionTest\:\:provideUnauthenticatedCases\(\) return type has no value type specified in iterable type iterable\.$#'
identifier: missingType.iterableValue
count: 1
path: tests/Action/LoginActionTest.php
-
message: '#^Call to function method_exists\(\) with ''Symfony\\\\Component\\\\Security\\\\Core\\\\User\\\\UserProviderInterface'' and ''loadUserByIdentifier'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: tests/Action/SendEmailActionTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotEmpty\(\) with Nucleos\\UserAdminBundle\\Admin\\Entity\\GroupAdmin will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Admin/Entity/GroupAdminTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertNotEmpty\(\) with Nucleos\\UserAdminBundle\\Admin\\Entity\\UserAdmin will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Admin/Entity/UserAdminTest.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Tests\\App\\Entity\\User\:\:getUserIdentifier\(\) should return non\-empty\-string but returns string\.$#'
identifier: return.type
count: 1
path: tests/App/Entity/User.php
-
message: '#^Call to function method_exists\(\) with ''Symfony\\\\Bundle\\\\TwigBundle\\\\DependencyInjection\\\\TwigExtension'' and ''getAlias'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: tests/DependencyInjection/NucleosUserAdminExtensionTest.php
-
message: '#^Call to function method_exists\(\) with ''Symfony\\\\Bundle\\\\TwigBundle\\\\DependencyInjection\\\\TwigExtension'' and ''load'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: tests/DependencyInjection/NucleosUserAdminExtensionTest.php
-
message: '#^Call to function method_exists\(\) with ''Symfony\\\\Component\\\\DependencyInjection\\\\ContainerBuilder'' and ''hasExtension'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: tests/DependencyInjection/NucleosUserAdminExtensionTest.php
-
message: '#^Call to function method_exists\(\) with ''Symfony\\\\Component\\\\DependencyInjection\\\\ContainerBuilder'' and ''prependExtensionCon…'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: tests/DependencyInjection/NucleosUserAdminExtensionTest.php
-
message: '#^Method Nucleos\\UserAdminBundle\\Tests\\Fixtures\\PoolMockFactory\:\:create\(\) has parameter \$adminServiceIds with generic interface Sonata\\AdminBundle\\Admin\\AdminInterface but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: tests/Fixtures/PoolMockFactory.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true and non\-falsy\-string will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Resources/XliffTest.php
-
message: '#^Parameter \#3 \$options of class Sonata\\AdminBundle\\SonataConfiguration constructor expects array\{confirm_exit\: bool, default_admin_route\: string, default_group\: string, default_icon\: string, default_translation_domain\: string, dropdown_number_groups_per_colums\: int, form_type\: ''horizontal''\|''standard'', html5_validate\: bool, \.\.\.\}, array\{\} given\.$#'
identifier: argument.type
count: 3
path: tests/Security/Authorization/Voter/EditableRolesBuilderTest.php
-
message: '#^Parameter \#3 \$options of class Sonata\\AdminBundle\\SonataConfiguration constructor expects array\{confirm_exit\: bool, default_admin_route\: string, default_group\: string, default_icon\: string, default_translation_domain\: string, dropdown_number_groups_per_colums\: int, form_type\: ''horizontal''\|''standard'', html5_validate\: bool, \.\.\.\}, array\{\} given\.$#'
identifier: argument.type
count: 1
path: tests/Security/RolesBuilder/AdminRolesBuilderTest.php
-
message: '#^Property Nucleos\\UserAdminBundle\\Tests\\Security\\RolesBuilder\\AdminRolesBuilderTest\:\:\$token is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Security/RolesBuilder/AdminRolesBuilderTest.php
-
message: '#^Property Nucleos\\UserAdminBundle\\Tests\\Security\\RolesBuilder\\AdminRolesBuilderTest\:\:\$tokenStorage is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Security/RolesBuilder/AdminRolesBuilderTest.php
-
message: '#^Parameter \#3 \$options of class Sonata\\AdminBundle\\SonataConfiguration constructor expects array\{confirm_exit\: bool, default_admin_route\: string, default_group\: string, default_icon\: string, default_translation_domain\: string, dropdown_number_groups_per_colums\: int, form_type\: ''horizontal''\|''standard'', html5_validate\: bool, \.\.\.\}, array\{role_super_admin\: ''ROLE_SUPER_ADMIN'', role_admin\: ''ROLE_SONATA_ADMIN''\} given\.$#'
identifier: argument.type
count: 1
path: tests/Security/RolesBuilder/SecurityRolesBuilderTest.php
-
message: '#^Property Nucleos\\UserAdminBundle\\Tests\\Security\\RolesBuilder\\SecurityRolesBuilderTest\:\:\$admin is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Security/RolesBuilder/SecurityRolesBuilderTest.php