Skip to content

Commit

Permalink
run ci tests in Laravel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Gotre committed Jun 6, 2023
1 parent 0c9dd2e commit efdfb5a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@1.0.0
uses: aglipanci/laravel-pint-action@2.3.0

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.1]
laravel: [9.*]
laravel: [10.*, 9.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
carbon: ^2.63
- laravel: 10.*
testbench: 8.*
carbon: ^2.63

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Please review [our security policy](../../security/policy) on how to report secu
## Credits

- [Stefan Gotre](https://github.com/teraone)
- [Tyler Trushin](https://github.com/ttrushin)
- [All Contributors](../../contributors)

## License
Expand Down
7 changes: 2 additions & 5 deletions src/ZeroTrustMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,8 @@ protected function jwtIsValid(string $token): bool

$headerCheckerManager->check($jws, 0, ['kid', 'alg']);

$claimCheckerManager = new ClaimCheckerManager(
[
...$this->getClaimCheckers(),
]
);
$claimCheckerManager = new ClaimCheckerManager($this->getClaimCheckers());

$claims = json_decode($jws->getPayload(), true);
$claimCheckerManager->check($claims, $this->getClaims());

Expand Down

0 comments on commit efdfb5a

Please sign in to comment.