diff --git a/lib/Controller/OtherController.php b/lib/Controller/OtherController.php index 516a8514e..3973fb81d 100644 --- a/lib/Controller/OtherController.php +++ b/lib/Controller/OtherController.php @@ -68,9 +68,7 @@ public function getUserConfig(): Http\Response { return Util::guardEx(function () { // get memories version - $version = \OC::$server->get(\OCP\App\IAppManager::class) - ->getAppInfo('memories')['version'] - ; + $version = \OC::$server->get(\OCP\App\IAppManager::class)->getAppVersion('memories'); // get user if logged in try { @@ -136,7 +134,7 @@ public function describeApi(): Http\Response $urlGenerator = \OC::$server->get(\OCP\IURLGenerator::class); $info = [ - 'version' => $appManager->getAppInfo('memories')['version'], + 'version' => $appManager->getAppVersion('memories'), 'baseUrl' => $urlGenerator->linkToRouteAbsolute('memories.Page.main'), 'loginFlowUrl' => $urlGenerator->linkToRouteAbsolute('core.ClientFlowLoginV2.init'), ]; diff --git a/lib/Controller/TemplateResponsePatch.php b/lib/Controller/TemplateResponsePatch.php index 24964669f..c9607d876 100644 --- a/lib/Controller/TemplateResponsePatch.php +++ b/lib/Controller/TemplateResponsePatch.php @@ -6,6 +6,7 @@ use OCP\AppFramework\Http\TemplateResponse; +/** @psalm-suppress MissingTemplateParam */ class TemplateResponsePatch extends TemplateResponse { public function render()