Skip to content

Commit f260712

Browse files
authored
Merge branch 'master' into edenred-provider-1
2 parents 4a56dfb + bf52393 commit f260712

File tree

8 files changed

+92
-68
lines changed

8 files changed

+92
-68
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: 59 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (6.0.4)
4+
activesupport (6.0.4.1)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
@@ -19,21 +19,22 @@ 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)
25-
ethon (0.14.0)
24+
http_parser.rb (~> 0)
25+
ethon (0.15.0)
2626
ffi (>= 1.15.0)
2727
eventmachine (1.2.7)
2828
execjs (2.8.1)
29-
faraday (1.5.1)
29+
faraday (1.8.0)
3030
faraday-em_http (~> 1.0)
3131
faraday-em_synchrony (~> 1.0)
3232
faraday-excon (~> 1.1)
3333
faraday-httpclient (~> 1.0.1)
3434
faraday-net_http (~> 1.0)
3535
faraday-net_http_persistent (~> 1.1)
3636
faraday-patron (~> 1.0)
37+
faraday-rack (~> 1.0)
3738
multipart-post (>= 1.2, < 3)
3839
ruby2_keywords (>= 0.0.4)
3940
faraday-em_http (1.0.0)
@@ -43,11 +44,12 @@ GEM
4344
faraday-net_http (1.0.1)
4445
faraday-net_http_persistent (1.2.0)
4546
faraday-patron (1.0.0)
46-
ffi (1.15.3)
47+
faraday-rack (1.0.0)
48+
ffi (1.15.4)
4749
forwardable-extended (2.6.0)
4850
gemoji (3.0.1)
49-
github-pages (215)
50-
github-pages-health-check (= 1.17.2)
51+
github-pages (222)
52+
github-pages-health-check (= 1.17.9)
5153
jekyll (= 3.9.0)
5254
jekyll-avatar (= 0.7.0)
5355
jekyll-coffeescript (= 1.1.1)
@@ -67,39 +69,39 @@ GEM
6769
jekyll-seo-tag (= 2.7.1)
6870
jekyll-sitemap (= 1.4.0)
6971
jekyll-swiss (= 1.0.0)
70-
jekyll-theme-architect (= 0.1.1)
71-
jekyll-theme-cayman (= 0.1.1)
72-
jekyll-theme-dinky (= 0.1.1)
73-
jekyll-theme-hacker (= 0.1.2)
74-
jekyll-theme-leap-day (= 0.1.1)
75-
jekyll-theme-merlot (= 0.1.1)
76-
jekyll-theme-midnight (= 0.1.1)
77-
jekyll-theme-minimal (= 0.1.1)
78-
jekyll-theme-modernist (= 0.1.1)
79-
jekyll-theme-primer (= 0.5.4)
80-
jekyll-theme-slate (= 0.1.1)
81-
jekyll-theme-tactile (= 0.1.1)
82-
jekyll-theme-time-machine (= 0.1.1)
72+
jekyll-theme-architect (= 0.2.0)
73+
jekyll-theme-cayman (= 0.2.0)
74+
jekyll-theme-dinky (= 0.2.0)
75+
jekyll-theme-hacker (= 0.2.0)
76+
jekyll-theme-leap-day (= 0.2.0)
77+
jekyll-theme-merlot (= 0.2.0)
78+
jekyll-theme-midnight (= 0.2.0)
79+
jekyll-theme-minimal (= 0.2.0)
80+
jekyll-theme-modernist (= 0.2.0)
81+
jekyll-theme-primer (= 0.6.0)
82+
jekyll-theme-slate (= 0.2.0)
83+
jekyll-theme-tactile (= 0.2.0)
84+
jekyll-theme-time-machine (= 0.2.0)
8385
jekyll-titles-from-headings (= 0.5.3)
8486
jemoji (= 0.12.0)
8587
kramdown (= 2.3.1)
8688
kramdown-parser-gfm (= 1.1.0)
8789
liquid (= 4.0.3)
8890
mercenary (~> 0.3)
8991
minima (= 2.5.1)
90-
nokogiri (>= 1.10.4, < 2.0)
92+
nokogiri (>= 1.12.5, < 2.0)
9193
rouge (= 3.26.0)
9294
terminal-table (~> 1.4)
93-
github-pages-health-check (1.17.2)
95+
github-pages-health-check (1.17.9)
9496
addressable (~> 2.3)
9597
dnsruby (~> 1.60)
9698
octokit (~> 4.0)
97-
public_suffix (>= 2.0.2, < 5.0)
99+
public_suffix (>= 3.0, < 5.0)
98100
typhoeus (~> 1.3)
99101
html-pipeline (2.14.0)
100102
activesupport (>= 2)
101103
nokogiri (>= 1.4)
102-
http_parser.rb (0.6.0)
104+
http_parser.rb (0.8.0)
103105
i18n (0.9.5)
104106
concurrent-ruby (~> 1.0)
105107
jekyll (3.9.0)
@@ -160,45 +162,45 @@ GEM
160162
jekyll-sitemap (1.4.0)
161163
jekyll (>= 3.7, < 5.0)
162164
jekyll-swiss (1.0.0)
163-
jekyll-theme-architect (0.1.1)
164-
jekyll (~> 3.5)
165+
jekyll-theme-architect (0.2.0)
166+
jekyll (> 3.5, < 5.0)
165167
jekyll-seo-tag (~> 2.0)
166-
jekyll-theme-cayman (0.1.1)
167-
jekyll (~> 3.5)
168+
jekyll-theme-cayman (0.2.0)
169+
jekyll (> 3.5, < 5.0)
168170
jekyll-seo-tag (~> 2.0)
169-
jekyll-theme-dinky (0.1.1)
170-
jekyll (~> 3.5)
171+
jekyll-theme-dinky (0.2.0)
172+
jekyll (> 3.5, < 5.0)
171173
jekyll-seo-tag (~> 2.0)
172-
jekyll-theme-hacker (0.1.2)
174+
jekyll-theme-hacker (0.2.0)
173175
jekyll (> 3.5, < 5.0)
174176
jekyll-seo-tag (~> 2.0)
175-
jekyll-theme-leap-day (0.1.1)
176-
jekyll (~> 3.5)
177+
jekyll-theme-leap-day (0.2.0)
178+
jekyll (> 3.5, < 5.0)
177179
jekyll-seo-tag (~> 2.0)
178-
jekyll-theme-merlot (0.1.1)
179-
jekyll (~> 3.5)
180+
jekyll-theme-merlot (0.2.0)
181+
jekyll (> 3.5, < 5.0)
180182
jekyll-seo-tag (~> 2.0)
181-
jekyll-theme-midnight (0.1.1)
182-
jekyll (~> 3.5)
183+
jekyll-theme-midnight (0.2.0)
184+
jekyll (> 3.5, < 5.0)
183185
jekyll-seo-tag (~> 2.0)
184-
jekyll-theme-minimal (0.1.1)
185-
jekyll (~> 3.5)
186+
jekyll-theme-minimal (0.2.0)
187+
jekyll (> 3.5, < 5.0)
186188
jekyll-seo-tag (~> 2.0)
187-
jekyll-theme-modernist (0.1.1)
188-
jekyll (~> 3.5)
189+
jekyll-theme-modernist (0.2.0)
190+
jekyll (> 3.5, < 5.0)
189191
jekyll-seo-tag (~> 2.0)
190-
jekyll-theme-primer (0.5.4)
192+
jekyll-theme-primer (0.6.0)
191193
jekyll (> 3.5, < 5.0)
192194
jekyll-github-metadata (~> 2.9)
193195
jekyll-seo-tag (~> 2.0)
194-
jekyll-theme-slate (0.1.1)
195-
jekyll (~> 3.5)
196+
jekyll-theme-slate (0.2.0)
197+
jekyll (> 3.5, < 5.0)
196198
jekyll-seo-tag (~> 2.0)
197-
jekyll-theme-tactile (0.1.1)
198-
jekyll (~> 3.5)
199+
jekyll-theme-tactile (0.2.0)
200+
jekyll (> 3.5, < 5.0)
199201
jekyll-seo-tag (~> 2.0)
200-
jekyll-theme-time-machine (0.1.1)
201-
jekyll (~> 3.5)
202+
jekyll-theme-time-machine (0.2.0)
203+
jekyll (> 3.5, < 5.0)
202204
jekyll-seo-tag (~> 2.0)
203205
jekyll-titles-from-headings (0.5.3)
204206
jekyll (>= 3.3, < 5.0)
@@ -214,27 +216,27 @@ GEM
214216
kramdown (~> 2.0)
215217
libv8 (3.16.14.19)
216218
liquid (4.0.3)
217-
listen (3.5.1)
219+
listen (3.7.0)
218220
rb-fsevent (~> 0.10, >= 0.10.3)
219221
rb-inotify (~> 0.9, >= 0.9.10)
220222
mercenary (0.3.6)
221-
mini_portile2 (2.5.3)
223+
mini_portile2 (2.6.1)
222224
minima (2.5.1)
223225
jekyll (>= 3.5, < 5.0)
224226
jekyll-feed (~> 0.9)
225227
jekyll-seo-tag (~> 2.1)
226228
minitest (5.14.4)
227229
multipart-post (2.1.1)
228-
nokogiri (1.11.7)
229-
mini_portile2 (~> 2.5.0)
230+
nokogiri (1.12.5)
231+
mini_portile2 (~> 2.6.1)
230232
racc (~> 1.4)
231233
octokit (4.21.0)
232234
faraday (>= 0.9)
233235
sawyer (~> 0.8.0, >= 0.5.3)
234236
pathutil (0.16.2)
235237
forwardable-extended (~> 2.6)
236238
public_suffix (4.0.6)
237-
racc (1.5.2)
239+
racc (1.6.0)
238240
rb-fsevent (0.11.0)
239241
rb-inotify (0.10.1)
240242
ffi (~> 1.0)
@@ -268,9 +270,9 @@ GEM
268270
thread_safe (~> 0.1)
269271
unf (0.1.4)
270272
unf_ext
271-
unf_ext (0.0.7.7)
272-
unicode-display_width (1.7.0)
273-
zeitwerk (2.4.2)
273+
unf_ext (0.0.8)
274+
unicode-display_width (1.8.0)
275+
zeitwerk (2.5.1)
274276

275277
PLATFORMS
276278
ruby

docs/providers/thirdparty.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Gateway | Composer Package | Maintainer
3636
[concrete5](https://github.com/concrete5/oauth2-concrete5) | concrete5/oauth2-concrete5 | [Andrew Embler](https://github.com/aembler)
3737
[ChatWork](https://github.com/chatwork/oauth2-chatwork-php) | chatwork/oauth2-chatwork | [Yuta Adachi](https://github.com/ada-u)
3838
[Clever](https://github.com/schoolrunner/oauth2-clever) | schoolrunner/oauth2-clever | [Schoolrunner](https://github.com/schoolrunner)
39+
[CloudConvert](https://github.com/osavchenko/oauth2-cloudconvert) | osavchenko/oauth2-cloudconvert | [Oleksandr Savchenko](https://github.com/osavchenko)
3940
[Clover](https://github.com/wheniwork/oauth2-clover) | wheniwork/oauth2-clover | [When I Work](https://github.com/wheniwork)
4041
[Coinbase](https://github.com/openclerk/coinbase-oauth2) | openclerk/coinbase-oauth2 | [Openclerk](https://github.com/openclerk)
4142
[Deezer](https://github.com/julienbornstein/oauth2-deezer) | julienbornstein/oauth2-deezer | [Julien Bornstein](https://github.com/julienbornstein)
@@ -88,8 +89,10 @@ Gateway | Composer Package | Maintainer
8889
[Naver](https://packagist.org/packages/deminoth/oauth2-naver) | deminoth/oauth2-naver | [SangYeob Bono Yu](https://github.com/deminoth)
8990
[Netatmo](https://github.com/rugaard/oauth2-netatmo) | rugaard/oauth2-netatmo | [Morten Rugaard](https://github.com/rugaard)
9091
[Nest](https://github.com/stevenmaguire/oauth2-nest) | stevenmaguire/oauth2-nest | [Steven Maguire](https://github.com/stevenmaguire)
92+
[NIBE](https://github.com/olssonm/oauth2-nibe) | olssonm/oauth2-nibe | [Marcus Olsson](https://github.com/olssonm)
9193
[Odnoklassniki](https://packagist.org/packages/aego/oauth2-odnoklassniki) | aego/oauth2-odnoklassniki | [Alexey](https://github.com/rakeev)
9294
[Okta](https://packagist.org/packages/foxworth42/oauth2-okta) | foxworth42/oauth2-okta | [Ed Walker](https://github.com/foxworth42)
95+
[OpenStreetMap](https://packagist.org/packages/jbelien/oauth2-openstreetmap) | jbelien/oauth2-openstreetmap | [Jonathan Beliën](https://github.com/jbelien)
9396
[Optimizely](https://packagist.org/packages/widerfunnel/oauth2-optimizely) | widerfunnel/oauth2-optimizely | [WiderFunnel Labs](https://github.com/WiderFunnel-Labs)
9497
[PayPal](https://github.com/stevenmaguire/oauth2-paypal) | stevenmaguire/oauth2-paypal | [Steven Maguire](https://github.com/stevenmaguire)
9598
[Pipedrive](https://github.com/daniti/oauth2-pipedrive) | daniti/oauth2-pipedrive | [Daniele Timo](https://github.com/daniti)
@@ -105,6 +108,7 @@ Gateway | Composer Package | Maintainer
105108
[Salesforce](https://github.com/stevenmaguire/oauth2-salesforce) | stevenmaguire/oauth2-salesforce | [Steven Maguire](https://github.com/stevenmaguire)
106109
[Shopify](https://github.com/multidimension-al/oauth2-shopify) | multidimensional/oauth2-shopify | [multidimension.al](https://multidimension.al/)
107110
[Slack](https://github.com/adam-paterson/oauth2-slack) | adam-paterson/oauth2-slack | [Adam Paterson](https://github.com/adam-paterson)
111+
[Snapchat](https://github.com/pbringetto/oauth2-snapchat) | pbringetto/oauth2-snapchat | [Paul Bringetto](https://github.com/pbringetto)
108112
[Spotify](https://packagist.org/packages/audeio/spotify-web-api) | audeio/spotify-web-api | [Jonjo McKay](https://github.com/jonjomckay)
109113
[Spotify](https://packagist.org/packages/kerox/oauth2-spotify) | kerox/oauth2-spotify | [Romain Monteil](https://github.com/ker0x)
110114
[SteemConnect V2](https://github.com/hernandev/oauth2-sc2) | hernandev/oauth2-sc2 | [Diego Hernandes](https://github.com/hernandev)
@@ -116,6 +120,7 @@ Gateway | Composer Package | Maintainer
116120
[Thingiverse](https://packagist.org/packages/freshworkx/oauth2-thingiverse) | freshworkx/oauth2-thingiverse | [Jens Neumann](https://github.com/freshworkx)
117121
[ThirtySevenSignals](https://github.com/nilesuan/oauth2-thirtysevensignals) | nilesuan/oauth2-thirtysevensignals | [Nile Suan](https://github.com/nilesuan)
118122
[Trakt.tv](https://github.com/Bogstag/oauth2-trakt) | bogstag/oauth2-trakt | [Krister Bogstag](https://github.com/Bogstag/)
123+
[Trovo](https://github.com/artandor/oauth2-trovo) | artandor/oauth2-trovo | [Nicolas Mylle](https://github.com/artandor/)
119124
[Twinfield](https://github.com/php-twinfield/twinfield) | php-twinfield/twinfield | [Mollie B.V.](https://github.com/mollie)
120125
[Twitch.tv](https://github.com/tpavlek/oauth2-twitch) | depotwarehouse/oauth2-twitch | [Troy Pavlek](https://github.com/tpavlek)
121126
[Twitch.tv (New API Helix)](https://github.com/vertisan/oauth2-twitch-helix) | vertisan/oauth2-twitch-helix | [Paweł Farys](https://github.com/vertisan)
@@ -125,6 +130,7 @@ Gateway | Composer Package | Maintainer
125130
[Vend](https://github.com/wheniwork/oauth2-vend) | wheniwork/oauth2-vend | [When I Work](https://github.com/wheniwork)
126131
[Vimeo](https://github.com/saf33r/oauth2-vimeo) | saf33r/oauth2-vimeo | [Safeer Ahmed](https://github.com/saf33r)
127132
[Vkontakte](https://github.com/j4k/oauth2-vkontakte) | j4k/oauth2-vkontakte | [Jack W](https://github.com/j4k)
133+
[Withings](https://github.com/waytohealth/oauth2-withings) | waytohealth/oauth2-withings | [Way to Health](https://github.com/waytohealth)
128134
[WordPress](https://github.com/krombox/oauth2-wordpress) | krombox/oauth2-wordpress | [Roman Kapustian](https://github.com/krombox)
129135
[Wechat](https://github.com/oakhope/oauth2-wechat) | oakhope/oauth2-wechat | [Benji Wang](https://github.com/oakhope)
130136
[WeCounsel](https://github.com/stevenmaguire/oauth2-wecounsel) | stevenmaguire/oauth2-wecounsel | [Steven Maguire](https://github.com/stevenmaguire)

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)