don’t crash if getManifest is not available

Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2025-10-23 08:16:08 -06:00
parent f2f58d11d6
commit 9c2497460b

View File

@@ -300,7 +300,10 @@ ERR;
});
}
$manifest = $service->promote($this->location, $this->getVersion(), $this->ignores);
$this->lastManifest = $service->getLastManifest() ?? $manifest;
if (method_exists($service, 'getLastManifest')) {
$manifest = $service->getLastManifest() ?? $manifest;
}
$this->lastManifest = $manifest;
Installer::setError(Installer::OK);
} else {
Installer::install(