Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the lcobucci/jwt package to version ^5.0 and bump php to version ^8.1 #36

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'
tools: composer:v2

- name: Validate composer.json and composer.lock
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ Recommended and easiest way to installing library is through [Composer](https://
* OpenSSL Extension

## PHP support
|PHP version|Library version|
|---|---|
|`5.x`|`NOT SUPPORTED`|
| `> 7.0 <= 7.3`| `1.4.x` |
| `>= 7.4 < 8.0`| `1.5.x` |
| `>= 8.0 & ^7.4`| `2.0.x` |
| PHP version | Library version |
|-----------------|-----------------|
| `5.x` | `NOT SUPPORTED` |
| `> 7.0 <= 7.3` | `1.4.x` |
| `>= 7.4 < 8.0` | `1.5.x` |
| `>= 8.0 & ^7.4` | `2.0.x` |
| `>= 8.1` | `3.0.x` |

Versioning follows [semver](https://semver.org/) standard.

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
},
"minimum-stability": "stable",
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"ext-mbstring": "*",
"ext-openssl": "*",
"phpseclib/phpseclib": "^3.0",
"lcobucci/jwt": "^4.0",
"lcobucci/jwt": "^5.0",
"guzzlehttp/guzzle": "^6.0|^7.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Auth/Factory/AppleJwtStructFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function testIfCreateJwtPayloadFromTokenReturnsExpectedJsonPayload(): voi
'nonce_supported' => true
], ''
),
Token\Signature::fromEmptyData()
new Token\Signature('', '')
)
)
);
Expand Down