You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ CHANGELOG
4
4
8.0
5
5
---
6
6
7
+
* Remove support for passing an instance of `StoreInterface` as `$cache` argument to `CachingHttpClient` constructor, use a `TagAwareCacheInterface` instead
7
8
* Remove support for amphp/http-client < 5
8
9
* Remove setLogger() methods on decorators; configure the logger on the wrapped client directly instead
@@ -109,46 +104,18 @@ class CachingHttpClient implements HttpClientInterface, ResetInterface
109
104
*/
110
105
publicfunction__construct(
111
106
privateHttpClientInterface$client,
112
-
TagAwareCacheInterface|StoreInterface$cache,
107
+
privatereadonlyTagAwareCacheInterface$cache,
113
108
array$defaultOptions = [],
114
109
privatereadonlybool$sharedCache = true,
115
110
privatereadonly ?int$maxTtl = null,
116
111
) {
117
-
if ($cacheinstanceof StoreInterface) {
118
-
trigger_deprecation('symfony/http-client', '7.4', 'Passing a "%s" as constructor\'s 2nd argument of "%s" is deprecated, "%s" expected.', StoreInterface::class, __CLASS__, TagAwareCacheInterface::class);
0 commit comments