Merge pull request #298 from arawa/fix/psalm_actions

fix: psalm github actions
pull/302/head
Thibaut 2024-10-24 09:27:57 +02:00 committed by GitHub
commit 2dfa811937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
ocp-version: [ 'dev-stable27', 'dev-stable26', 'dev-stable25' ] ocp-version: [ '^28', '^27', '^26', '^25']
name: Nextcloud ${{ matrix.ocp-version }} name: Nextcloud ${{ matrix.ocp-version }}
steps: steps:
- name: Checkout - name: Checkout

View File

@ -35,6 +35,9 @@ class Application extends App implements IBootstrap {
parent::__construct(self::ID, $urlParams); parent::__construct(self::ID, $urlParams);
} }
/**
* @psalm-suppress InvalidArgument
*/
public function register(IRegistrationContext $context): void { public function register(IRegistrationContext $context): void {
if ((@include_once __DIR__ . '/../../vendor/autoload.php') === false) { if ((@include_once __DIR__ . '/../../vendor/autoload.php') === false) {
throw new \Exception('Cannot include autoload. Did you run install dependencies using composer?'); throw new \Exception('Cannot include autoload. Did you run install dependencies using composer?');