-
Notifications
You must be signed in to change notification settings - Fork 2
/
psalm-report.json
189 lines (189 loc) · 9.81 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
{
"error": [
{
"severity": "error",
"line_from": 103,
"line_to": 103,
"type": "InvalidReturnType",
"message": "The declared return type 'array<array-key, Generated\\Shared\\Transfer\\FileManagerDataTransfer>' for Spryker\\Zed\\FileManager\\Business\\File\\FileReader::getFilesByIds is incorrect, got 'array<Generated\\Shared\\Transfer\\FileManagerDataTransfer, mixed>'",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/File/FileReader.php",
"snippet": " * @return array<\\Generated\\Shared\\Transfer\\FileManagerDataTransfer>",
"selected_text": "array<\\Generated\\Shared\\Transfer\\FileManagerDataTransfer>",
"error_level": 6,
"shortcode": 11
},
{
"severity": "error",
"line_from": 120,
"line_to": 120,
"type": "InvalidArgument",
"message": "Argument 1 of Generated\\Shared\\Transfer\\FileManagerDataCollectionTransfer::setFileManagerDataItems expects ArrayObject<Generated\\Shared\\Transfer\\FileManagerDataTransfer>, but ArrayObject<int, Generated\\Shared\\Transfer\\FileManagerDataTransfer> provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/File/FileReader.php",
"snippet": " $fileManagerDataCollectionTransfer->setFileManagerDataItems(new ArrayObject($fileManagerDataTransfers));",
"selected_text": "new ArrayObject($fileManagerDataTransfers)",
"error_level": 6,
"shortcode": 4
},
{
"severity": "error",
"line_from": 124,
"line_to": 124,
"type": "InvalidReturnStatement",
"message": "The inferred type 'array<Generated\\Shared\\Transfer\\FileManagerDataTransfer, mixed>' does not match the declared return type 'array<array-key, Generated\\Shared\\Transfer\\FileManagerDataTransfer>' for Spryker\\Zed\\FileManager\\Business\\File\\FileReader::getFilesByIds",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/File/FileReader.php",
"snippet": " return $fileManagerDataCollectionTransfer->getFileManagerDataItems()->getArrayCopy();",
"selected_text": "$fileManagerDataCollectionTransfer->getFileManagerDataItems()->getArrayCopy()",
"error_level": 6,
"shortcode": 128
},
{
"severity": "error",
"line_from": 142,
"line_to": 142,
"type": "InvalidArgument",
"message": "Argument 1 of ArrayObject::offsetGet expects Generated\\Shared\\Transfer\\FileManagerDataTransfer, but 0 provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/File/FileReader.php",
"snippet": " return $fileManagerDataCollectionTransfer->getFileManagerDataItems()->offsetGet(0);",
"selected_text": "0",
"error_level": 6,
"shortcode": 4
},
{
"severity": "error",
"line_from": 154,
"line_to": 154,
"type": "InvalidArgument",
"message": "Argument 1 of ArrayObject::offsetGet expects Generated\\Shared\\Transfer\\FileInfoTransfer, but 0 provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/File/FileReader.php",
"snippet": " return $fileTransfer->getFileInfo()[0] ?? null;",
"selected_text": "0",
"error_level": 6,
"shortcode": 4
},
{
"severity": "error",
"line_from": 258,
"line_to": 258,
"type": "InvalidArgument",
"message": "Argument 1 of ArrayObject::offsetGet expects Generated\\Shared\\Transfer\\FileManagerDataTransfer, but 0 provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/File/FileSaver.php",
"snippet": " return $fileManagerDataCollectionTransfer->getFileManagerDataItems()->offsetGet(0);",
"selected_text": "0",
"error_level": 6,
"shortcode": 4
},
{
"severity": "error",
"line_from": 45,
"line_to": 45,
"type": "NullArgument",
"message": "Argument 1 of ArrayObject::offsetSet cannot be null, null value provided to parameter with type int",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/FileDirectoryTree/FileDirectoryTreeReader.php",
"snippet": " $nodesWithoutPosition[] = $fileDirectoryTreeNodeTransfer;",
"selected_text": "$nodesWithoutPosition",
"error_level": 6,
"shortcode": 57
}
],
"warning": [
{
"severity": "info",
"line_from": 54,
"line_to": 54,
"type": "PossiblyNullOperand",
"message": "Left operand cannot be nullable, got int|null",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/File/FileVersion.php",
"snippet": " return $fileInfoTransfer->getVersion() + 1;",
"selected_text": "$fileInfoTransfer->getVersion()",
"error_level": 1,
"shortcode": 80
},
{
"severity": "info",
"line_from": 29,
"line_to": 29,
"type": "PossiblyNullArgument",
"message": "Argument 2 of sprintf cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/FileName/FileNameResolverTrait.php",
"snippet": " $fileInfoTransfer->getFkFile(),",
"selected_text": "$fileInfoTransfer->getFkFile()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 31,
"line_to": 31,
"type": "PossiblyNullArgument",
"message": "Argument 4 of sprintf cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/FileName/FileNameResolverTrait.php",
"snippet": " $fileInfoTransfer->getVersionName(),",
"selected_text": "$fileInfoTransfer->getVersionName()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 32,
"line_to": 32,
"type": "PossiblyNullArgument",
"message": "Argument 5 of sprintf cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/FileName/FileNameResolverTrait.php",
"snippet": " $fileInfoTransfer->getExtension(),",
"selected_text": "$fileInfoTransfer->getExtension()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 43,
"line_to": 43,
"type": "PossiblyNullArgument",
"message": "Argument 1 of Spryker\\Zed\\FileManager\\Persistence\\FileManagerEntityManagerInterface::deleteMimeType cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Business/MimeType/MimeTypeRemover.php",
"snippet": " $this->entityManager->deleteMimeType($mimeTypeTransfer->getIdMimeType());",
"selected_text": "$mimeTypeTransfer->getIdMimeType()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 345,
"line_to": 345,
"type": "PossiblyNullArgument",
"message": "Argument 1 of Orm\\Zed\\FileManager\\Persistence\\SpyFileQuery::limit cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Persistence/FileManagerRepository.php",
"snippet": " ->limit($paginationTransfer->getLimit())",
"selected_text": "$paginationTransfer->getLimit()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 346,
"line_to": 346,
"type": "PossiblyNullArgument",
"message": "Argument 1 of Orm\\Zed\\FileManager\\Persistence\\SpyFileQuery::offset cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Persistence/FileManagerRepository.php",
"snippet": " ->offset($paginationTransfer->getOffset());",
"selected_text": "$paginationTransfer->getOffset()",
"error_level": 3,
"shortcode": 78
}
],
"deprecation": [
{
"severity": "info",
"line_from": 218,
"line_to": 218,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Zed\\FileManager\\Persistence\\Mapper\\FileManagerMapper::hasExtensionsField has been marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/FileManager/src/Spryker/Zed/FileManager/Persistence/Mapper/FileManagerMapper.php",
"snippet": " if ($this->hasExtensionsField() && $mimeType->getExtensions()) {",
"selected_text": "hasExtensionsField",
"error_level": 2,
"shortcode": 1
}
],
"count": 15
}