From eb918cff1144eed452ab204714903891e47f7892 Mon Sep 17 00:00:00 2001 From: Thomas Hohn <thomas@hohn.dk> Date: Tue, 31 Jan 2023 19:12:37 +0100 Subject: [PATCH] [TASK] Cleanup of type for sameBeginEnd in ContentObjectRenderer The variable sameBeginEnd should have the type bool, since the comparison calculation yields a bool. Resolves: #99776 Releases: main, 11.5 Change-Id: Iddbd04197b1b2f99bc96d365c0c4dde1615568da Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77580 Tested-by: Oliver Bartsch <bo@cedev.de> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Oliver Bartsch <bo@cedev.de> --- .../frontend/Classes/ContentObject/ContentObjectRenderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 16fb86fdd44b..0128fc4ef213 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -3823,7 +3823,7 @@ class ContentObjectRenderer implements LoggerAwareInterface $str_content = ''; foreach ($lParts as $k => $l) { - $sameBeginEnd = 0; + $sameBeginEnd = false; $emptyTag = false; $l = trim($l); $attrib = []; @@ -3837,7 +3837,7 @@ class ContentObjectRenderer implements LoggerAwareInterface $tagName = substr($tagName, 0, -1); } if (substr($fwParts[0], -1) === '/') { - $sameBeginEnd = 1; + $sameBeginEnd = true; $emptyTag = true; // decode HTML entities, they're encoded later again $attrib = GeneralUtility::get_tag_attributes('<' . substr($fwParts[0], 0, -1) . '>', true); -- GitLab