From 2ff36d97dd8f7340dc64d55b0004abb414809e16 Mon Sep 17 00:00:00 2001 From: Liviu-Mihail Concioiu Date: Mon, 8 Sep 2025 18:26:08 +0200 Subject: [PATCH] Merge pull request #19833 from liviuconcioiu/19827 Fix #19827 - Fix setMimeMap being executed for each row --- src/Display/Results.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Display/Results.php b/src/Display/Results.php index d61d19f8fd..782410b997 100644 --- a/src/Display/Results.php +++ b/src/Display/Results.php @@ -153,9 +153,9 @@ class Results * transformation_options?: string, * input_transformation?: string, * input_transformation_options?: string - * }> + * }>|null */ - private array $mediaTypeMap = []; + private array|null $mediaTypeMap = null; /** * where clauses for each row, each table in the row @@ -1868,7 +1868,7 @@ class Results } // 2. Displays the rows' values - if ($this->mediaTypeMap === []) { + if ($this->mediaTypeMap === null) { $this->setMimeMap(); }