Skip to content

Commit 2ff36d9

Browse files
Merge pull request #19833 from liviuconcioiu/19827
Fix #19827 - Fix setMimeMap being executed for each row
1 parent 89e6184 commit 2ff36d9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Display/Results.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ class Results
153153
* transformation_options?: string,
154154
* input_transformation?: string,
155155
* input_transformation_options?: string
156-
* }>
156+
* }>|null
157157
*/
158-
private array $mediaTypeMap = [];
158+
private array|null $mediaTypeMap = null;
159159

160160
/**
161161
* where clauses for each row, each table in the row
@@ -1868,7 +1868,7 @@ private function getTableBody(
18681868
}
18691869

18701870
// 2. Displays the rows' values
1871-
if ($this->mediaTypeMap === []) {
1871+
if ($this->mediaTypeMap === null) {
18721872
$this->setMimeMap();
18731873
}
18741874

0 commit comments

Comments
 (0)