Skip to content

Commit

Permalink
Replace deprated/removed GuzzleHttp\Psr7\build_query (#500)
Browse files Browse the repository at this point in the history
* Explicitly require guzzlehttp/psr7

* Replace deprecated Psr7\build_query with Psr7\Query::build
  • Loading branch information
bartvanraaij authored May 5, 2021
1 parent 0611fba commit 7a58886
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"ext-openssl": "*",
"auth0/php-jwt": "3.3.4",
"guzzlehttp/guzzle": "^6.0|^7.0",
"psr/simple-cache": "^1.0"
"psr/simple-cache": "^1.0",
"guzzlehttp/psr7": "^1.8"
},
"require-dev": {
"phpunit/phpunit": "^9.3",
Expand Down
6 changes: 3 additions & 3 deletions src/API/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function get_authorize_link(
return sprintf(
'https://%s/authorize?%s',
$this->domain,
Psr7\build_query($params)
Psr7\Query::build($params)
);
}

Expand Down Expand Up @@ -218,7 +218,7 @@ public function get_wsfed_link(?string $client_id = null, array $params = []) :
'https://%s/wsfed/%s?%s',
$this->domain,
$client_id ?? $this->client_id,
Psr7\build_query($params)
Psr7\Query::build($params)
);
}

Expand Down Expand Up @@ -258,7 +258,7 @@ public function get_logout_link(?string $returnTo = null, $client_id = null, boo
return sprintf(
'https://%s/v2/logout?%s',
$this->domain,
Psr7\build_query($params)
Psr7\Query::build($params)
);
}

Expand Down

0 comments on commit 7a58886

Please sign in to comment.