-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpsalm-report.json
273 lines (273 loc) · 13.6 KB
/
psalm-report.json
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
{
"error": [
{
"severity": "error",
"line_from": 265,
"line_to": 265,
"type": "InvalidArgument",
"message": "Argument 2 of array_filter expects callable(mixed, mixed=):scalar, \"glob\" provided",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/RouterConfig.php",
"snippet": " return array_filter($directories, 'glob');",
"selected_text": "'glob'",
"error_level": 6,
"shortcode": 4
}
],
"warning": [
{
"severity": "info",
"line_from": 43,
"line_to": 43,
"type": "PossiblyInvalidArgument",
"message": "Argument 1 of Spryker\\Glue\\Router\\Router\\ChainRouter::add expects Symfony\\Component\\Routing\\RouterInterface, possibly different type Spryker\\Glue\\RouterExtension\\Dependency\\Plugin\\RouterPluginInterface|Symfony\\Component\\Routing\\RouterInterface provided",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Glue/Router/Router/ChainRouter.php",
"snippet": " $this->add($routerPlugin);",
"selected_text": "$routerPlugin",
"error_level": 3,
"shortcode": 92
},
{
"severity": "info",
"line_from": 33,
"line_to": 33,
"type": "LessSpecificImplementedReturnType",
"message": "The inherited return type 'callable|false' for Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface::getController is more specific than the implemented return type for Spryker\\Shared\\Router\\Resolver\\ControllerResolver::getcontroller 'array<array-key, mixed>|bool|callable|object'",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Shared/Router/Resolver/ControllerResolver.php",
"snippet": " * @return callable|object|array|bool|false",
"selected_text": "callable|object|array|bool|false",
"error_level": 5,
"shortcode": 166
},
{
"severity": "info",
"line_from": 30,
"line_to": 30,
"type": "RedundantFunctionCall",
"message": "The call to strtolower is unnecessary",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Shared/Router/RouterConfig.php",
"snippet": " ucfirst(strtolower(APPLICATION)),",
"selected_text": "strtolower",
"error_level": 4,
"shortcode": 280
},
{
"severity": "info",
"line_from": 38,
"line_to": 38,
"type": "RedundantCondition",
"message": "Type Symfony\\Component\\Routing\\RouteCollection for $object is always Symfony\\Component\\Routing\\RouteCollection",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Yves/Router/Plugin/Console/Descriptor/Descriptor.php",
"snippet": " case $object instanceof RouteCollection:",
"selected_text": "$object instanceof RouteCollection",
"error_level": 4,
"shortcode": 122
},
{
"severity": "info",
"line_from": 144,
"line_to": 144,
"type": "PossiblyFalseOperand",
"message": "Left operand cannot be falsable, got false|int",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/Router/RouterResource/AbstractRouterResource.php",
"snippet": " $className = implode('\\\\', array_slice($classNameParts, $srcPosition + 1));",
"selected_text": "$srcPosition",
"error_level": 3,
"shortcode": 162
},
{
"severity": "info",
"line_from": 145,
"line_to": 145,
"type": "PossiblyFalseOperand",
"message": "Left operand cannot be falsable, got false|int",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/Router/RouterResource/RouterResource.php",
"snippet": " $className = implode('\\\\', array_slice($classNameParts, $srcPosition + 1));",
"selected_text": "$srcPosition",
"error_level": 3,
"shortcode": 162
}
],
"deprecation": [
{
"severity": "info",
"line_from": 43,
"line_to": 43,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Glue\\Router\\Plugin\\EventDispatcher\\RouterListenerEventDispatcherPlugin::disableSilexRouter has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Glue/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php",
"snippet": " $container = $this->disableSilexRouter($container);",
"selected_text": "disableSilexRouter",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 76,
"line_to": 76,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Yves\\Router\\Plugin\\Application\\RouterApplicationPlugin::setBackwardsCompatibleServiceNames has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Yves/Router/Plugin/Application/RouterApplicationPlugin.php",
"snippet": " $this->setBackwardsCompatibleServiceNames($container, static::SERVICE_ROUTER, [",
"selected_text": "setBackwardsCompatibleServiceNames",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 43,
"line_to": 43,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Yves\\Router\\Plugin\\EventDispatcher\\RouterListenerEventDispatcherPlugin::disableSilexRouter has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Yves/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php",
"snippet": " $container = $this->disableSilexRouter($container);",
"selected_text": "disableSilexRouter",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 52,
"line_to": 52,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\RouterConfig::getRouterConfiguration has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/Cache/Cache.php",
"snippet": " $routerConfiguration = $this->config->getRouterConfiguration();",
"selected_text": "getRouterConfiguration",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 287,
"line_to": 287,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\Business\\RouterBusinessFactory::createResource has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/RouterBusinessFactory.php",
"snippet": " $this->createResource(),",
"selected_text": "createResource",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 288,
"line_to": 288,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\Business\\RouterBusinessFactory::getRouterEnhancerPlugins has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/RouterBusinessFactory.php",
"snippet": " $this->getRouterEnhancerPlugins(),",
"selected_text": "getRouterEnhancerPlugins",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 30,
"line_to": 30,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\Business\\RouterBusinessFactory::createRouter has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/RouterFacade.php",
"snippet": " return $this->getFactory()->createRouter();",
"selected_text": "createRouter",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 44,
"line_to": 44,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\Business\\RouterBusinessFactory::createZedRouter has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/RouterFacade.php",
"snippet": " return $this->getFactory()->createZedRouter();",
"selected_text": "createZedRouter",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 162,
"line_to": 162,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\Business\\RouterBusinessFactory::createCache has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Business/RouterFacade.php",
"snippet": " $this->getFactory()->createCache()->warmUp();",
"selected_text": "createCache",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 50,
"line_to": 50,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\Communication\\Plugin\\EventDispatcher\\RouterListenerEventDispatcherPlugin::disableSilexRouter has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Communication/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php",
"snippet": " $container = $this->disableSilexRouter($container);",
"selected_text": "disableSilexRouter",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 50,
"line_to": 50,
"type": "DeprecatedConstant",
"message": "Constant Spryker\\Zed\\Router\\Communication\\Plugin\\EventDispatcher\\RouterSslRedirectEventDispatcherPlugin::SSL_SERVICE_PROVIDER_BC_FEATURE_FLAG is deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Communication/Plugin/EventDispatcher/RouterSslRedirectEventDispatcherPlugin.php",
"snippet": " $container->set(static::SSL_SERVICE_PROVIDER_BC_FEATURE_FLAG, false);",
"selected_text": "static::SSL_SERVICE_PROVIDER_BC_FEATURE_FLAG",
"error_level": 2,
"shortcode": 170
},
{
"severity": "info",
"line_from": 24,
"line_to": 24,
"type": "DeprecatedConstant",
"message": "Constant Spryker\\Zed\\Router\\RouterDependencyProvider::ROUTER_PLUGINS is deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/Communication/RouterCommunicationFactory.php",
"snippet": " return $this->getProvidedDependency(RouterDependencyProvider::ROUTER_PLUGINS);",
"selected_text": "RouterDependencyProvider::ROUTER_PLUGINS",
"error_level": 2,
"shortcode": 170
},
{
"severity": "info",
"line_from": 189,
"line_to": 189,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\RouterConfig::getRouterConfiguration has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/RouterConfig.php",
"snippet": " $routerConfiguration = $this->getRouterConfiguration();",
"selected_text": "getRouterConfiguration",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 77,
"line_to": 77,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\RouterDependencyProvider::addRouterPlugins has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/RouterDependencyProvider.php",
"snippet": " $container = $this->addRouterPlugins($container);",
"selected_text": "addRouterPlugins",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 78,
"line_to": 78,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\Router\\RouterDependencyProvider::addRouterEnhancerPlugins has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Router/src/Spryker/Zed/Router/RouterDependencyProvider.php",
"snippet": " $container = $this->addRouterEnhancerPlugins($container);",
"selected_text": "addRouterEnhancerPlugins",
"error_level": 2,
"shortcode": 1
}
],
"count": 22
}