Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/bundler/docs/github-pages-222
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey authored Nov 30, 2021
2 parents 2885b7c + 97f9346 commit de992a7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 11 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@ jobs:
lint:
name: "Lint"
runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]

continue-on-error: ${{ matrix.php-version == '8.1' }}

steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
coverage: "none"
ini-values: "memory_limit=-1"
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
tools: "composer:v2"
- uses: "ramsey/composer-install@v1"
- name: "Lint the PHP source code"
Expand Down Expand Up @@ -58,19 +66,17 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
experimental:
- false
include:
- php-version: "8.1"
experimental: true
composer-options: "--ignore-platform-reqs"

steps:
- uses: "actions/checkout@v2"
- uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "pcov"
ini-values: "memory_limit=-1"
ini-values: "memory_limit=-1, zend.assertions=1, error_reporting=-1, display_errors=On"
tools: "composer:v2"
- name: "Prepare for tests"
run: "mkdir -p build/logs"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ testing/
nbproject/private/
test/log
build
/.phpunit.result.cache
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"paragonie/random_compat": "^1 || ^2 || ^9.99"
},
"require-dev": {
"mockery/mockery": "^1.3",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpunit/phpunit": "^5.7 || ^6.0 || ^9.3",
"mockery/mockery": "^1.3.5",
"php-parallel-lint/php-parallel-lint": "^1.3.1",
"phpunit/phpunit": "^5.7 || ^6.0 || ^9.5",
"squizlabs/php_codesniffer": "^2.3 || ^3.0"
},
"keywords": [
Expand Down
9 changes: 8 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" bootstrap="./vendor/autoload.php">
<phpunit
bootstrap="./vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
convertNoticesToExceptions="true"
convertDeprecationsToExceptions="true"
>
<testsuites>
<testsuite name="all">
<directory>./test</directory>
Expand Down
2 changes: 2 additions & 0 deletions src/Token/AccessTokenInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
namespace League\OAuth2\Client\Token;

use JsonSerializable;
use ReturnTypeWillChange;
use RuntimeException;

interface AccessTokenInterface extends JsonSerializable
Expand Down Expand Up @@ -68,5 +69,6 @@ public function __toString();
*
* @return array
*/
#[ReturnTypeWillChange]
public function jsonSerialize();
}
2 changes: 1 addition & 1 deletion src/Tool/QueryBuilderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ trait QueryBuilderTrait
*/
protected function buildQueryString(array $params)
{
return http_build_query($params, null, '&', \PHP_QUERY_RFC3986);
return http_build_query($params, '', '&', \PHP_QUERY_RFC3986);
}
}

0 comments on commit de992a7

Please sign in to comment.