Skip to content

Commit

Permalink
Merge pull request #36 from ovidiuenache/update-lcobucci-to-version-5
Browse files Browse the repository at this point in the history
Update the lcobucci/jwt package to version ^5.0 and bump php to version ^8.1
  • Loading branch information
hywak committed Aug 9, 2023
2 parents 97dc4c1 + 6853c23 commit 2b75722
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
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

0 comments on commit 2b75722

Please sign in to comment.