Skip to content

Commit

Permalink
Add missing setSessionId for cache purpose #117
Browse files Browse the repository at this point in the history
  • Loading branch information
johnzuk committed Jan 2, 2023
1 parent 2c1ba02 commit 5518a9f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ 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

- 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
Expand All @@ -25,14 +29,18 @@ 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

- 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
Expand All @@ -44,19 +52,22 @@ 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

- 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
Expand Down
5 changes: 5 additions & 0 deletions src/GusApi/GusApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public function getSessionId(): string
return $this->sessionId;
}

public function setSessionId(string $sessionId): void
{
$this->sessionId = $sessionId;
}

/**
* @throws InvalidUserKeyException
*/
Expand Down

0 comments on commit 5518a9f

Please sign in to comment.