diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index c149806..2882a28 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -9,6 +9,10 @@ jobs: name: Composer validation runs-on: ubuntu-20.04 + strategy: + matrix: + php: [ '8.0', '8.1', '8.2', '8.3' ] + steps: - name: Checkout code uses: actions/checkout@v3 @@ -16,7 +20,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: ${{ matrix.php }} - name: Execute composer validate run: composer validate --strict @@ -25,6 +29,10 @@ jobs: name: PHPCs runs-on: ubuntu-20.04 + strategy: + matrix: + php: [ '8.0', '8.1', '8.2', '8.3' ] + steps: - name: Checkout code uses: actions/checkout@v3 @@ -32,7 +40,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: ${{ matrix.php }} - name: Install Dependencies uses: nick-invision/retry@v1 @@ -44,11 +52,14 @@ jobs: - name: Execute PHPCs run: vendor/bin/phpcs src tests - phpstan: name: PHPStan runs-on: ubuntu-20.04 + strategy: + matrix: + php: [ '8.0', '8.1', '8.2', '8.3' ] + steps: - name: Checkout code uses: actions/checkout@v3 @@ -56,7 +67,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: ${{ matrix.php }} - name: Install Dependencies uses: nick-invision/retry@v1 diff --git a/src/GusApi/GusApi.php b/src/GusApi/GusApi.php index 98857b7..ed5614b 100644 --- a/src/GusApi/GusApi.php +++ b/src/GusApi/GusApi.php @@ -54,6 +54,11 @@ public function getSessionId(): string return $this->sessionId; } + public function setSessionId(string $sessionId): void + { + $this->sessionId = $sessionId; + } + /** * @throws InvalidUserKeyException */