From d48e6ed24af160088db434241539b1d4e023a9d9 Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Tue, 5 Nov 2024 18:11:50 +0100 Subject: [PATCH] TASK: Drop code for PHP < 8 --- .../Property/TypeConverter/MediaTypeConverter.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Neos.Flow/Classes/Property/TypeConverter/MediaTypeConverter.php b/Neos.Flow/Classes/Property/TypeConverter/MediaTypeConverter.php index 7516bc5dde..39746cbbc2 100644 --- a/Neos.Flow/Classes/Property/TypeConverter/MediaTypeConverter.php +++ b/Neos.Flow/Classes/Property/TypeConverter/MediaTypeConverter.php @@ -92,19 +92,9 @@ protected function convertMediaType($requestBody, $mediaType) } break; case 'xml': - // TODO: Remove those lines once the minimum PHP version is 8.0 - if (PHP_MAJOR_VERSION < 8) { - $entityLoaderValue = libxml_disable_entity_loader(true); - } try { $xmlElement = new \SimpleXMLElement(urldecode($requestBody), LIBXML_NOERROR); - if (PHP_MAJOR_VERSION < 8) { - libxml_disable_entity_loader($entityLoaderValue); - } } catch (\Exception $exception) { - if (PHP_MAJOR_VERSION < 8) { - libxml_disable_entity_loader($entityLoaderValue); - } return []; } $result = Arrays::convertObjectToArray($xmlElement);