Skip to content

Commit f630137

Browse files
authored
Merge branch 'master' into feature/ghactions-lint-against-all-supported-versions
2 parents f377289 + 7580630 commit f630137

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
php-version: "7.4"
3232
coverage: "none"
33-
ini-values: "memory_limit=-1"
33+
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
3434
tools: "composer:v2"
3535
- uses: "ramsey/composer-install@v1"
3636
- name: "Lint the PHP source code"
@@ -66,19 +66,17 @@ jobs:
6666
- "7.3"
6767
- "7.4"
6868
- "8.0"
69+
- "8.1"
6970
experimental:
7071
- false
71-
include:
72-
- php-version: "8.1"
73-
experimental: true
74-
composer-options: "--ignore-platform-reqs"
72+
7573
steps:
7674
- uses: "actions/checkout@v2"
7775
- uses: "shivammathur/setup-php@v2"
7876
with:
7977
php-version: "${{ matrix.php-version }}"
8078
coverage: "pcov"
81-
ini-values: "memory_limit=-1"
79+
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
8280
tools: "composer:v2"
8381
- name: "Prepare for tests"
8482
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

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)