From fc5cce9f5716764a80a9b235252b1e53996e714d Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Thu, 13 Jun 2024 18:11:26 +0200
Subject: [PATCH] [BUGFIX] Revert breaking change in BackendLayout class
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

While cleaning up BackendLayout code, a
"declare(strict_types=1);" line was introduced,
which made existing v13-compatible PHP code
break. This is now reverted in order to smoothen
the upgrade path to v13 LTS.

Resolves: #104099
Related: #103365
Releases: main
Change-Id: Ic0de7e903da365178d5e417ff5eeb60c00f1b516
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84701
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
---
 .../backend/Classes/View/BackendLayout/BackendLayout.php     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/backend/Classes/View/BackendLayout/BackendLayout.php b/typo3/sysext/backend/Classes/View/BackendLayout/BackendLayout.php
index cc85112ac211..244c8ed1679f 100644
--- a/typo3/sysext/backend/Classes/View/BackendLayout/BackendLayout.php
+++ b/typo3/sysext/backend/Classes/View/BackendLayout/BackendLayout.php
@@ -1,7 +1,5 @@
 <?php
 
-declare(strict_types=1);
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -22,6 +20,9 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
  * Class to represent a backend layout.
+ *
+ * # @deprecated: put the following line in TYPO3 v14.0, see #104099 and #103365
+ * # declare(strict_types=1);
  */
 class BackendLayout
 {
-- 
GitLab