Skip to content

Commit 39e57b2

Browse files
authored
Merge pull request #174 from SocialConnect/psr-libs
Allow v2 of PSR libs.
2 parents d3bbee5 + 0e48798 commit 39e57b2

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php-version: ['7.2', '7.4', '8.0']
11+
php-version: ['7.4', '8.0', '8.1']
1212
composer-opts: ['']
1313
include:
1414
- php-version: '7.1'
1515
composer-opts: '--prefer-lowest'
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919

2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Composer install
2727
run: |
28-
if [[ ${{ matrix.php-version }} == '8.0' ]]; then
28+
if [[ ${{ matrix.php-version }} == '8.0' || ${{ matrix.php-version }} == '8.1' ]]; then
2929
composer remove --dev squizlabs/php_codesniffer phpstan/phpstan-shim phpunit/phpunit
3030
composer require --dev phpunit/phpunit:^8.5
3131
else
@@ -51,7 +51,7 @@ jobs:
5151
runs-on: ubuntu-18.04
5252

5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@v3
5555

5656
- name: Setup PHP
5757
uses: shivammathur/setup-php@v2
@@ -68,4 +68,4 @@ jobs:
6868

6969
- name: Run phpstan
7070
if: success() || failure()
71-
run: vendor/bin/phpstan.phar analyse src/ tests/ --no-progress --level 2
71+
run: vendor/bin/phpstan.phar analyse src/ tests/ --no-progress --level 2

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"require": {
2929
"php": ">=7.1",
3030
"ext-json": "*",
31-
"psr/http-client": "^1.0",
32-
"psr/simple-cache": "^1.0",
33-
"psr/http-factory": "^1.0",
31+
"psr/http-client": "^1.0 || ^2.0",
32+
"psr/simple-cache": "^1.0 || ^2.0",
33+
"psr/http-factory": "^1.0 || ^2.0",
3434
"socialconnect/jwx": "^1.0"
3535
},
3636
"require-dev": {

tests/Test/OpenIDConnect/Provider/AppleTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ protected function getTestResponseForGetIdentity(): ResponseInterface
3131

3232
public function testGetOpenIDUrl()
3333
{
34-
// nothing to test, because Apple->testGetOpenIDUrl will throw an exception on call
34+
$this->markTestSkipped(
35+
'Nothing to test, '
36+
. 'because Apple->testGetOpenIDUrl will throw an exception on call'
37+
);
3538
}
3639

3740
public function testGetIdentitySuccess()

0 commit comments

Comments
 (0)