From 1b75df73efd054f829f2b215a2b0f8a96e785801 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 21 Oct 2025 13:19:00 -0600 Subject: [PATCH] fix for #3966 Signed-off-by: Andy Miller --- system/src/Grav/Installer/Install.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Installer/Install.php b/system/src/Grav/Installer/Install.php index 8b228b652..a74d35b6c 100644 --- a/system/src/Grav/Installer/Install.php +++ b/system/src/Grav/Installer/Install.php @@ -300,7 +300,14 @@ ERR; }); } $manifest = $service->promote($this->location, $this->getVersion(), $this->ignores); - $this->lastManifest = $service->getLastManifest() ?? $manifest; + $this->lastManifest = $manifest; + if (method_exists($service, 'getLastManifest')) { + // SafeUpgradeService in Grav < 1.7.50.1 does not expose getLastManifest(). + $lastManifest = $service->getLastManifest(); + if (null !== $lastManifest) { + $this->lastManifest = $lastManifest; + } + } Installer::setError(Installer::OK); } else { Installer::install(