-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpsalm-report.json
67 lines (67 loc) · 3.94 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
{
"error": [
{
"severity": "error",
"line_from": 69,
"line_to": 69,
"type": "InvalidReturnType",
"message": "The declared return type 'array<string, Generated\\Shared\\Transfer\\ContentProductAbstractListTypeTransfer>' for Spryker\\Client\\ContentProduct\\Mapper\\ContentProductAbstractListTypeMapper::executeProductAbstractListTypeByKeys is incorrect, got 'array<0|string, Generated\\Shared\\Transfer\\ContentProductAbstractListTypeTransfer>'",
"file_name": "vendor/spryker/spryker/Bundles/ContentProduct/src/Spryker/Client/ContentProduct/Mapper/ContentProductAbstractListTypeMapper.php",
"snippet": " * @return array<string, \\Generated\\Shared\\Transfer\\ContentProductAbstractListTypeTransfer>",
"selected_text": "array<string, \\Generated\\Shared\\Transfer\\ContentProductAbstractListTypeTransfer>",
"error_level": 6,
"shortcode": 11
},
{
"severity": "error",
"line_from": 94,
"line_to": 94,
"type": "InvalidReturnStatement",
"message": "The inferred type 'non-empty-array<0|string, Generated\\Shared\\Transfer\\ContentProductAbstractListTypeTransfer>' does not match the declared return type 'array<string, Generated\\Shared\\Transfer\\ContentProductAbstractListTypeTransfer>' for Spryker\\Client\\ContentProduct\\Mapper\\ContentProductAbstractListTypeMapper::executeProductAbstractListTypeByKeys",
"file_name": "vendor/spryker/spryker/Bundles/ContentProduct/src/Spryker/Client/ContentProduct/Mapper/ContentProductAbstractListTypeMapper.php",
"snippet": " return $contentProductAbstractListTypeTransfers;",
"selected_text": "$contentProductAbstractListTypeTransfers",
"error_level": 6,
"shortcode": 128
}
],
"warning": [
{
"severity": "info",
"line_from": 56,
"line_to": 56,
"type": "PossiblyNullArgument",
"message": "Argument 2 of sprintf cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker/Bundles/ContentProduct/src/Spryker/Client/ContentProduct/Mapper/ContentProductAbstractListTypeMapper.php",
"snippet": " sprintf('There is no matching Term for ProductAbstractListType when provided with term %s.', $term),",
"selected_text": "$term",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 91,
"line_to": 91,
"type": "PossiblyNullArrayOffset",
"message": "Cannot access value on variable $contentProductAbstractListTypeTransfers[null|string] using possibly null offset null|string",
"file_name": "vendor/spryker/spryker/Bundles/ContentProduct/src/Spryker/Client/ContentProduct/Mapper/ContentProductAbstractListTypeMapper.php",
"snippet": " $contentProductAbstractListTypeTransfers[$contentTypeContextTransfer->getKey()] = $productAbstractListTermToBannerTypeExecutor->execute($contentTypeContextTransfer);",
"selected_text": "$contentProductAbstractListTypeTransfers",
"error_level": 3,
"shortcode": 125
},
{
"severity": "info",
"line_from": 54,
"line_to": 54,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\MessageTransfer> variable ",
"file_name": "vendor/spryker/spryker/Bundles/ContentProduct/src/Spryker/Zed/ContentProduct/Business/Validator/ContentProductAbstractListValidator.php",
"snippet": " if ($contentParameterMessageTransfer->getMessages()->count()) {",
"selected_text": "count",
"error_level": 3,
"shortcode": 113
}
],
"deprecation": []
}