From d83580585252f46e09ff53107022c3deff122bdb Mon Sep 17 00:00:00 2001 From: Christian Kuhn Date: Fri, 8 May 2026 16:46:12 +0200 Subject: [PATCH] [TASK] Guard Bootstrap::loadExtTables() The core method is removed in v15 due to removal of ext_table.php processing. Guard it to not break v14. --- Build/phpstan/phpstan-baseline.neon | 6 ++++++ Classes/Core/Testbase.php | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index a39ba5db..208a1a5c 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -35,3 +35,9 @@ parameters: identifier: notIdentical.alwaysTrue count: 1 path: ../../Classes/Core/Functional/FunctionalTestCase.php + + - + message: '#^Call to function method_exists\(\) with ''TYPO3\\\\CMS\\\\Core\\\\Core\\\\Bootstrap'' and ''loadExtTables'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: ../../Classes/Core/Testbase.php diff --git a/Classes/Core/Testbase.php b/Classes/Core/Testbase.php index 891af0f4..1c440e4f 100644 --- a/Classes/Core/Testbase.php +++ b/Classes/Core/Testbase.php @@ -880,7 +880,9 @@ private function truncateAllTablesForOtherDatabases(): void */ public function loadExtensionTables(): void { - Bootstrap::loadExtTables(); + if (method_exists(Bootstrap::class, 'loadExtTables')) { + Bootstrap::loadExtTables(); + } } /**