Skip to content

Commit 666b18b

Browse files
authored
Merge branch 'master' into add-cloud-convert
2 parents e824c81 + 43f33e2 commit 666b18b

File tree

8 files changed

+35
-17
lines changed

8 files changed

+35
-17
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@ jobs:
1616
lint:
1717
name: "Lint"
1818
runs-on: "ubuntu-latest"
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
24+
25+
continue-on-error: ${{ matrix.php-version == '8.1' }}
26+
1927
steps:
2028
- uses: "actions/checkout@v2"
2129
- uses: "shivammathur/setup-php@v2"
2230
with:
2331
php-version: "7.4"
2432
coverage: "none"
25-
ini-values: "memory_limit=-1"
33+
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
2634
tools: "composer:v2"
2735
- uses: "ramsey/composer-install@v1"
2836
- name: "Lint the PHP source code"
@@ -58,19 +66,17 @@ jobs:
5866
- "7.3"
5967
- "7.4"
6068
- "8.0"
69+
- "8.1"
6170
experimental:
6271
- false
63-
include:
64-
- php-version: "8.1"
65-
experimental: true
66-
composer-options: "--ignore-platform-reqs"
72+
6773
steps:
6874
- uses: "actions/checkout@v2"
6975
- uses: "shivammathur/setup-php@v2"
7076
with:
7177
php-version: "${{ matrix.php-version }}"
7278
coverage: "pcov"
73-
ini-values: "memory_limit=-1"
79+
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
7480
tools: "composer:v2"
7581
- name: "Prepare for tests"
7682
run: "mkdir -p build/logs"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ testing/
66
nbproject/private/
77
test/log
88
build
9+
/.phpunit.result.cache

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"paragonie/random_compat": "^1 || ^2 || ^9.99"
1212
},
1313
"require-dev": {
14-
"mockery/mockery": "^1.3",
15-
"php-parallel-lint/php-parallel-lint": "^1.2",
16-
"phpunit/phpunit": "^5.7 || ^6.0 || ^9.3",
14+
"mockery/mockery": "^1.3.5",
15+
"php-parallel-lint/php-parallel-lint": "^1.3.1",
16+
"phpunit/phpunit": "^5.7 || ^6.0 || ^9.5",
1717
"squizlabs/php_codesniffer": "^2.3 || ^3.0"
1818
},
1919
"keywords": [

docs/Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ GEM
1919
concurrent-ruby (1.1.9)
2020
dnsruby (1.61.7)
2121
simpleidn (~> 0.1)
22-
em-websocket (0.5.2)
22+
em-websocket (0.5.3)
2323
eventmachine (>= 0.12.9)
24-
http_parser.rb (~> 0.6.0)
24+
http_parser.rb (~> 0)
2525
ethon (0.15.0)
2626
ffi (>= 1.15.0)
2727
eventmachine (1.2.7)
@@ -48,7 +48,7 @@ GEM
4848
ffi (1.15.4)
4949
forwardable-extended (2.6.0)
5050
gemoji (3.0.1)
51-
github-pages (221)
51+
github-pages (222)
5252
github-pages-health-check (= 1.17.9)
5353
jekyll (= 3.9.0)
5454
jekyll-avatar (= 0.7.0)
@@ -101,7 +101,7 @@ GEM
101101
html-pipeline (2.14.0)
102102
activesupport (>= 2)
103103
nokogiri (>= 1.4)
104-
http_parser.rb (0.6.0)
104+
http_parser.rb (0.8.0)
105105
i18n (0.9.5)
106106
concurrent-ruby (~> 1.0)
107107
jekyll (3.9.0)
@@ -236,7 +236,7 @@ GEM
236236
pathutil (0.16.2)
237237
forwardable-extended (~> 2.6)
238238
public_suffix (4.0.6)
239-
racc (1.5.2)
239+
racc (1.6.0)
240240
rb-fsevent (0.11.0)
241241
rb-inotify (0.10.1)
242242
ffi (~> 1.0)
@@ -272,7 +272,7 @@ GEM
272272
unf_ext
273273
unf_ext (0.0.8)
274274
unicode-display_width (1.8.0)
275-
zeitwerk (2.4.2)
275+
zeitwerk (2.5.1)
276276

277277
PLATFORMS
278278
ruby

docs/providers/thirdparty.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Gateway | Composer Package | Maintainer
8888
[Naver](https://packagist.org/packages/deminoth/oauth2-naver) | deminoth/oauth2-naver | [SangYeob Bono Yu](https://github.com/deminoth)
8989
[Netatmo](https://github.com/rugaard/oauth2-netatmo) | rugaard/oauth2-netatmo | [Morten Rugaard](https://github.com/rugaard)
9090
[Nest](https://github.com/stevenmaguire/oauth2-nest) | stevenmaguire/oauth2-nest | [Steven Maguire](https://github.com/stevenmaguire)
91+
[NIBE](https://github.com/olssonm/oauth2-nibe) | olssonm/oauth2-nibe | [Marcus Olsson](https://github.com/olssonm)
9192
[Odnoklassniki](https://packagist.org/packages/aego/oauth2-odnoklassniki) | aego/oauth2-odnoklassniki | [Alexey](https://github.com/rakeev)
9293
[Okta](https://packagist.org/packages/foxworth42/oauth2-okta) | foxworth42/oauth2-okta | [Ed Walker](https://github.com/foxworth42)
9394
[Optimizely](https://packagist.org/packages/widerfunnel/oauth2-optimizely) | widerfunnel/oauth2-optimizely | [WiderFunnel Labs](https://github.com/WiderFunnel-Labs)
@@ -116,6 +117,7 @@ Gateway | Composer Package | Maintainer
116117
[Thingiverse](https://packagist.org/packages/freshworkx/oauth2-thingiverse) | freshworkx/oauth2-thingiverse | [Jens Neumann](https://github.com/freshworkx)
117118
[ThirtySevenSignals](https://github.com/nilesuan/oauth2-thirtysevensignals) | nilesuan/oauth2-thirtysevensignals | [Nile Suan](https://github.com/nilesuan)
118119
[Trakt.tv](https://github.com/Bogstag/oauth2-trakt) | bogstag/oauth2-trakt | [Krister Bogstag](https://github.com/Bogstag/)
120+
[Trovo](https://github.com/artandor/oauth2-trovo) | artandor/oauth2-trovo | [Nicolas Mylle](https://github.com/artandor/)
119121
[Twinfield](https://github.com/php-twinfield/twinfield) | php-twinfield/twinfield | [Mollie B.V.](https://github.com/mollie)
120122
[Twitch.tv](https://github.com/tpavlek/oauth2-twitch) | depotwarehouse/oauth2-twitch | [Troy Pavlek](https://github.com/tpavlek)
121123
[Twitch.tv (New API Helix)](https://github.com/vertisan/oauth2-twitch-helix) | vertisan/oauth2-twitch-helix | [Paweł Farys](https://github.com/vertisan)

phpunit.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit colors="true" bootstrap="./vendor/autoload.php">
2+
<phpunit
3+
bootstrap="./vendor/autoload.php"
4+
colors="true"
5+
convertErrorsToExceptions="true"
6+
convertWarningsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertDeprecationsToExceptions="true"
9+
>
310
<testsuites>
411
<testsuite name="all">
512
<directory>./test</directory>

src/Token/AccessTokenInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
namespace League\OAuth2\Client\Token;
1616

1717
use JsonSerializable;
18+
use ReturnTypeWillChange;
1819
use RuntimeException;
1920

2021
interface AccessTokenInterface extends JsonSerializable
@@ -68,5 +69,6 @@ public function __toString();
6869
*
6970
* @return array
7071
*/
72+
#[ReturnTypeWillChange]
7173
public function jsonSerialize();
7274
}

src/Tool/QueryBuilderTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ trait QueryBuilderTrait
2828
*/
2929
protected function buildQueryString(array $params)
3030
{
31-
return http_build_query($params, null, '&', \PHP_QUERY_RFC3986);
31+
return http_build_query($params, '', '&', \PHP_QUERY_RFC3986);
3232
}
3333
}

0 commit comments

Comments
 (0)