Skip to content

Commit d1c9547

Browse files
author
Clement Herreman
committed
Compatibility with Symfony 6
1 parent 2c0e134 commit d1c9547

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CHANGELOG
2+
=========
3+
4+
2.0
5+
---
6+
7+
* Bump PHP version to `>.8.0`
8+
* Compatibility with Symfony 6 :
9+
* Bump `symfony/http-client-contracts` to `^3.0`
10+
* Bump `symfony/cache-contracts` to `^3.0`
11+

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
"psr-4": {"BenjaminFavre\\OAuthHttpClient\\": "src/"}
1616
},
1717
"require": {
18-
"php": "^7.2.5 || ^8.0.0",
18+
"php": "^8.0.0",
1919
"ext-json": "*",
20-
"symfony/http-client-contracts": "^2.3.1",
21-
"symfony/cache-contracts": "^2.2.0"
20+
"symfony/http-client-contracts": "^3.0",
21+
"symfony/cache-contracts": "^3.0"
2222
},
2323
"provide": {
2424
"symfony/http-client-implementation": "^2.3.1"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^9.4.3",
28-
"symfony/cache": "^5.2 || ^6.0",
29-
"symfony/http-client": "^5.2 || ^6.0",
28+
"symfony/cache": "^6.0",
29+
"symfony/http-client": "^6.0",
3030
"phpstan/phpstan": "^0.12.64"
3131
},
3232
"scripts": {

src/OAuthHttpClient.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,9 @@ public function stream($responses, float $timeout = null): ResponseStreamInterfa
9090
{
9191
return $this->client->stream($responses, $timeout);
9292
}
93+
94+
public function withOptions(array $options): static
95+
{
96+
return new static($this->client->withOptions($options), $this->grant);
97+
}
9398
}

0 commit comments

Comments
 (0)