From fb680d222b4e9615a9097256e7aeb91c565bfe01 Mon Sep 17 00:00:00 2001 From: albertlast Date: Sat, 8 Aug 2026 18:03:12 +0200 Subject: [PATCH] Imports SMF\Maintenance\Maintenance in the DropTimeOffset migration The migration calls Maintenance::$tool->updateModSettings() without importing the class, so inside namespace SMF\Maintenance\Migration\v3_0 the name resolves to SMF\Maintenance\Migration\v3_0\Maintenance, which does not exist. Every sibling migration that uses $tool imports SMF\Maintenance\Maintenance; this one does not. The call sits in the branch that runs when the forum's stored default_timezone is missing or is not an identifier PHP recognises, so it is reached while upgrading exactly those forums that need the fallback. Signed-off-by: albertlast --- Sources/Maintenance/Migration/v3_0/DropTimeOffset.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Maintenance/Migration/v3_0/DropTimeOffset.php b/Sources/Maintenance/Migration/v3_0/DropTimeOffset.php index 41101f43d9..9d8b1ae0ae 100644 --- a/Sources/Maintenance/Migration/v3_0/DropTimeOffset.php +++ b/Sources/Maintenance/Migration/v3_0/DropTimeOffset.php @@ -17,6 +17,7 @@ use SMF\Db\DatabaseApi as Db; use SMF\Db\Schema; +use SMF\Maintenance\Maintenance; use SMF\Maintenance\Migration\MigrationBase; class DropTimeOffset extends MigrationBase