From 5fa0b75bf53087288fc0ed1a8d296f829b3ad82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nitzsche?= Date: Sat, 11 Nov 2023 22:39:39 +0100 Subject: [PATCH] Fixed some php8 issues --- Classes/Frontend/Marker/BaseMarker.php | 2 +- Classes/Utility/Files.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/Frontend/Marker/BaseMarker.php b/Classes/Frontend/Marker/BaseMarker.php index 27d06df4..cda53b20 100644 --- a/Classes/Frontend/Marker/BaseMarker.php +++ b/Classes/Frontend/Marker/BaseMarker.php @@ -357,7 +357,7 @@ protected function getDefaultMarkerArray() */ protected static function getEmptyInstance($classname) { - if (!is_object(self::$emptyObjects[$classname])) { + if (!isset(self::$emptyObjects[$classname])) { /* @var $dummy DomainModelInterface */ $dummyInstance = tx_rnbase::makeInstance($classname, ['uid' => 0]); if ($dummyInstance instanceof DomainModelInterface diff --git a/Classes/Utility/Files.php b/Classes/Utility/Files.php index c7d8ecc0..af12cbf4 100644 --- a/Classes/Utility/Files.php +++ b/Classes/Utility/Files.php @@ -57,6 +57,7 @@ public static function getFileResource($fName, $options = []) if (null === $incFile) { $incFile = self::getFileName($fName); } + $ret = ''; if ($incFile) { // Im BE muss ein absoluter Pfad verwendet werden $fullPath = Environment::isBackend() ? Environment::getPublicPath().$incFile : $incFile;