From db48180a1bb245b851a915965647a0e642871cf4 Mon Sep 17 00:00:00 2001 From: Konrad Michalik Date: Wed, 13 Nov 2024 15:24:27 +0100 Subject: [PATCH] fix: type issue --- Classes/Utility/ContentUtility.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Utility/ContentUtility.php b/Classes/Utility/ContentUtility.php index 8ca95d3..121fc45 100644 --- a/Classes/Utility/ContentUtility.php +++ b/Classes/Utility/ContentUtility.php @@ -225,10 +225,10 @@ public static function getExtensionRecords(string $table, ?int $pid = null): arr ->fetchAllAssociative(); } - public static function getExtensionRecord(?string $table, ?int $uid): array|bool + public static function getExtensionRecord(?string $table, ?int $uid): array|null { if (!$table && !$uid) { - return false; + return null; } return BackendUtility::getRecord($table, $uid); }