Commit bdf9728a authored by Torben Hansen's avatar Torben Hansen Committed by Oliver Bartsch
Browse files

[TASK] Remove unused code in ContentObjectRenderer

The ContentObjectRenderer throws a warning under certain
circumstances in PHP8. The warning is generated by code,
which is unused.

This patch removes the unused code in ContentObjectRenderer.

Resolves: #95921
Releases: master, 11.5
Change-Id: Ifb6f3557434626ec71f37d92181a5b156f6b39e3

Tested-by: core-ci's avatarcore-ci <>
Tested-by: Benni Mack's avatarBenni Mack <>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
parent 0e965504
......@@ -6118,10 +6118,6 @@ class ContentObjectRenderer implements LoggerAwareInterface
// @todo Ugly hack that needs to be cleaned up, with the current architecture
// @todo for exec_Query / getQuery it's the best we can do.
$query = str_replace('###' . $marker . '###', $markerValue, $query);
foreach ($queryParts as $queryPartKey => &$queryPartValue) {
$queryPartValue = str_replace('###' . $marker . '###', $markerValue, $queryPartValue);
return $returnQueryArray ? $this->getQueryArray($queryBuilder) : $query;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment