1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Correct return type of array_map closure

This commit is contained in:
Jared Broughton 2020-02-20 19:25:15 -05:00 committed by Matthew Brown
parent 236e4d5e28
commit 86472de160

View File

@ -15,9 +15,9 @@ class XmlReport extends Report
{
$items = array_map(
/**
* @return array<int, array{severity: string, line_from: int, line_to: int, type: string, message: string,
* @return array{severity: string, line_from: int, line_to: int, type: string, message: string,
* file_name: string, file_path: string, snippet: string, from: int, to: int,
* snippet_from: int, snippet_to: int, column_from: int, column_to: int, selected_text: string}>
* snippet_from: int, snippet_to: int, column_from: int, column_to: int, selected_text: string}
*/
function (IssueData $issue_data) {
return [