From 3b6eeb264c3e18802cdad68ef823497398a19184 Mon Sep 17 00:00:00 2001 From: Sebastien Marinier Date: Wed, 23 Oct 2024 16:22:29 +0200 Subject: [PATCH] fix: psalm github actions (add psalm comment) Signed-off-by: Sebastien Marinier --- .github/workflows/static.yml | 2 +- lib/AppInfo/Application.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 3499ba6..0dbbe8c 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ocp-version: [ '28', '27', '26', '25'] + ocp-version: [ '^28', '^27', '^26', '^25'] name: Nextcloud ${{ matrix.ocp-version }} steps: - name: Checkout diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index ad2042b..65746c5 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -35,6 +35,9 @@ class Application extends App implements IBootstrap { parent::__construct(self::ID, $urlParams); } + /** + * @psalm-suppress InvalidArgument + */ public function register(IRegistrationContext $context): void { if ((@include_once __DIR__ . '/../../vendor/autoload.php') === false) { throw new \Exception('Cannot include autoload. Did you run install dependencies using composer?');