Skip to content

Commit

Permalink
lint: fix psalm issues
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Mar 11, 2024
1 parent f90b95e commit d44ecac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/Controller/OtherController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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'),
];
Expand Down
1 change: 1 addition & 0 deletions lib/Controller/TemplateResponsePatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use OCP\AppFramework\Http\TemplateResponse;

/** @psalm-suppress MissingTemplateParam */
class TemplateResponsePatch extends TemplateResponse
{
public function render()
Expand Down

0 comments on commit d44ecac

Please sign in to comment.