Skip to content

Commit de992a7

Browse files
authored
Merge branch 'master' into dependabot/bundler/docs/github-pages-222
2 parents 2885b7c + 97f9346 commit de992a7

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
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": [

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)