From 886c1d392b635b0aed33a39b7dca3c39c8f48e87 Mon Sep 17 00:00:00 2001
From: Wouter Wolters <typo3@wouterwolters.nl>
Date: Tue, 24 Aug 2021 21:41:57 +0200
Subject: [PATCH] [TASK] Declare strict types in ext_tables.php files

Since #94280 it's possible to declare strict types
in ext_tables.php files. This patch does this
through the core.

Resolves: #94984
Related: #94280
Releases: master
Change-Id: I8aee34f0f697992b9ce596dfdeb95926f1fd9c31
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70745
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
---
 typo3/sysext/backend/ext_tables.php          | 2 ++
 typo3/sysext/belog/ext_tables.php            | 2 ++
 typo3/sysext/beuser/ext_tables.php           | 2 ++
 typo3/sysext/core/ext_tables.php             | 2 ++
 typo3/sysext/dashboard/ext_tables.php        | 2 ++
 typo3/sysext/extensionmanager/ext_tables.php | 2 ++
 typo3/sysext/filelist/ext_tables.php         | 2 ++
 typo3/sysext/form/ext_tables.php             | 2 ++
 typo3/sysext/frontend/ext_tables.php         | 2 ++
 typo3/sysext/impexp/ext_tables.php           | 2 ++
 typo3/sysext/indexed_search/ext_tables.php   | 2 ++
 typo3/sysext/info/ext_tables.php             | 2 ++
 typo3/sysext/install/ext_tables.php          | 2 ++
 typo3/sysext/linkvalidator/ext_tables.php    | 2 ++
 typo3/sysext/lowlevel/ext_tables.php         | 2 ++
 typo3/sysext/recordlist/ext_tables.php       | 2 ++
 typo3/sysext/recycler/ext_tables.php         | 2 ++
 typo3/sysext/redirects/ext_tables.php        | 2 ++
 typo3/sysext/reports/ext_tables.php          | 2 ++
 typo3/sysext/scheduler/ext_tables.php        | 2 ++
 typo3/sysext/setup/ext_tables.php            | 2 ++
 typo3/sysext/sys_note/ext_tables.php         | 2 ++
 typo3/sysext/tstemplate/ext_tables.php       | 2 ++
 typo3/sysext/viewpage/ext_tables.php         | 2 ++
 typo3/sysext/workspaces/ext_tables.php       | 2 ++
 25 files changed, 50 insertions(+)

diff --git a/typo3/sysext/backend/ext_tables.php b/typo3/sysext/backend/ext_tables.php
index 673f92d01c3c..ad99589de059 100644
--- a/typo3/sysext/backend/ext_tables.php
+++ b/typo3/sysext/backend/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Register as a skin
diff --git a/typo3/sysext/belog/ext_tables.php b/typo3/sysext/belog/ext_tables.php
index 37bd3598d746..2cd899f899ce 100644
--- a/typo3/sysext/belog/ext_tables.php
+++ b/typo3/sysext/belog/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Module Web->Info->Log
diff --git a/typo3/sysext/beuser/ext_tables.php b/typo3/sysext/beuser/ext_tables.php
index ed6c74ee7d6d..fe577415bd57 100644
--- a/typo3/sysext/beuser/ext_tables.php
+++ b/typo3/sysext/beuser/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Module System > Backend Users
diff --git a/typo3/sysext/core/ext_tables.php b/typo3/sysext/core/ext_tables.php
index aa04b334cfe9..338b49afff8d 100644
--- a/typo3/sysext/core/ext_tables.php
+++ b/typo3/sysext/core/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 /**
diff --git a/typo3/sysext/dashboard/ext_tables.php b/typo3/sysext/dashboard/ext_tables.php
index 8bf01f493489..58762d0276a0 100644
--- a/typo3/sysext/dashboard/ext_tables.php
+++ b/typo3/sysext/dashboard/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/extensionmanager/ext_tables.php b/typo3/sysext/extensionmanager/ext_tables.php
index 3f0ccabd1d2b..b6c9454a52b2 100644
--- a/typo3/sysext/extensionmanager/ext_tables.php
+++ b/typo3/sysext/extensionmanager/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
diff --git a/typo3/sysext/filelist/ext_tables.php b/typo3/sysext/filelist/ext_tables.php
index f5ec2c1813cb..6a96b7b06ab8 100644
--- a/typo3/sysext/filelist/ext_tables.php
+++ b/typo3/sysext/filelist/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/form/ext_tables.php b/typo3/sysext/form/ext_tables.php
index 11d76060f12b..a76260f1a1a3 100644
--- a/typo3/sysext/form/ext_tables.php
+++ b/typo3/sysext/form/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Register the backend module Web->Forms
diff --git a/typo3/sysext/frontend/ext_tables.php b/typo3/sysext/frontend/ext_tables.php
index 702cf02e4402..d6528b316035 100644
--- a/typo3/sysext/frontend/ext_tables.php
+++ b/typo3/sysext/frontend/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Add allowed records to pages
diff --git a/typo3/sysext/impexp/ext_tables.php b/typo3/sysext/impexp/ext_tables.php
index 340607080b79..36a4ada889d5 100644
--- a/typo3/sysext/impexp/ext_tables.php
+++ b/typo3/sysext/impexp/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xMOD_tx_impexp', 'EXT:impexp/Resources/Private/Language/locallang_csh.xlf');
diff --git a/typo3/sysext/indexed_search/ext_tables.php b/typo3/sysext/indexed_search/ext_tables.php
index 5c1a4a250f67..cb04107c4afd 100644
--- a/typo3/sysext/indexed_search/ext_tables.php
+++ b/typo3/sysext/indexed_search/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
diff --git a/typo3/sysext/info/ext_tables.php b/typo3/sysext/info/ext_tables.php
index 3c22e5fd2d51..e2652fc65e23 100644
--- a/typo3/sysext/info/ext_tables.php
+++ b/typo3/sysext/info/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/install/ext_tables.php b/typo3/sysext/install/ext_tables.php
index 04034a0a664f..770ebe26506b 100644
--- a/typo3/sysext/install/ext_tables.php
+++ b/typo3/sysext/install/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/linkvalidator/ext_tables.php b/typo3/sysext/linkvalidator/ext_tables.php
index 597ca4932edd..b5281002a53c 100644
--- a/typo3/sysext/linkvalidator/ext_tables.php
+++ b/typo3/sysext/linkvalidator/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Add module
diff --git a/typo3/sysext/lowlevel/ext_tables.php b/typo3/sysext/lowlevel/ext_tables.php
index a76728e08ee4..0af657ecec4c 100644
--- a/typo3/sysext/lowlevel/ext_tables.php
+++ b/typo3/sysext/lowlevel/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/recordlist/ext_tables.php b/typo3/sysext/recordlist/ext_tables.php
index 83a308eb7ab1..4691ebfe485c 100644
--- a/typo3/sysext/recordlist/ext_tables.php
+++ b/typo3/sysext/recordlist/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/recycler/ext_tables.php b/typo3/sysext/recycler/ext_tables.php
index 1521fd09b608..ad39c8ac7837 100644
--- a/typo3/sysext/recycler/ext_tables.php
+++ b/typo3/sysext/recycler/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/redirects/ext_tables.php b/typo3/sysext/redirects/ext_tables.php
index 6054753c0b20..f6b56f33d611 100644
--- a/typo3/sysext/redirects/ext_tables.php
+++ b/typo3/sysext/redirects/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/reports/ext_tables.php b/typo3/sysext/reports/ext_tables.php
index f46f816d9d2f..7129e5961c9a 100644
--- a/typo3/sysext/reports/ext_tables.php
+++ b/typo3/sysext/reports/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/scheduler/ext_tables.php b/typo3/sysext/scheduler/ext_tables.php
index bd8a4f933356..49e7e024130f 100644
--- a/typo3/sysext/scheduler/ext_tables.php
+++ b/typo3/sysext/scheduler/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Add module
diff --git a/typo3/sysext/setup/ext_tables.php b/typo3/sysext/setup/ext_tables.php
index 7bdf224a484d..c8539734c888 100644
--- a/typo3/sysext/setup/ext_tables.php
+++ b/typo3/sysext/setup/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/sys_note/ext_tables.php b/typo3/sysext/sys_note/ext_tables.php
index 116af6a7d550..eb6d1de85b8b 100644
--- a/typo3/sysext/sys_note/ext_tables.php
+++ b/typo3/sysext/sys_note/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('sys_note');
diff --git a/typo3/sysext/tstemplate/ext_tables.php b/typo3/sysext/tstemplate/ext_tables.php
index 6ed42a13c986..c08dab3cda7f 100644
--- a/typo3/sysext/tstemplate/ext_tables.php
+++ b/typo3/sysext/tstemplate/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/viewpage/ext_tables.php b/typo3/sysext/viewpage/ext_tables.php
index 570d3c9b7fbe..3df9b9f1b2fe 100644
--- a/typo3/sysext/viewpage/ext_tables.php
+++ b/typo3/sysext/viewpage/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
diff --git a/typo3/sysext/workspaces/ext_tables.php b/typo3/sysext/workspaces/ext_tables.php
index 9b01b34e0fe0..ad3d2c706456 100644
--- a/typo3/sysext/workspaces/ext_tables.php
+++ b/typo3/sysext/workspaces/ext_tables.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 defined('TYPO3') or die();
 
 // Registers the workspaces Backend Module
-- 
GitLab