1 | <?php |
||
9 | class ResponseCache |
||
10 | { |
||
11 | /** @var ResponseCache */ |
||
12 | protected $cache; |
||
13 | |||
14 | /** @var RequestHasher */ |
||
15 | protected $hasher; |
||
16 | |||
17 | /** @var CacheProfile */ |
||
18 | protected $cacheProfile; |
||
19 | |||
20 | public function __construct(ResponseCacheRepository $cache, RequestHasher $hasher, CacheProfile $cacheProfile) |
||
26 | |||
27 | public function enabled(Request $request): bool |
||
31 | |||
32 | public function shouldCache(Request $request, Response $response): bool |
||
44 | |||
45 | public function cacheResponse(Request $request, Response $response, $lifetimeInMinutes = null): Response |
||
60 | |||
61 | public function hasBeenCached(Request $request): bool |
||
67 | |||
68 | public function getCachedResponseFor(Request $request): Response |
||
72 | |||
73 | /** |
||
74 | * @deprecated Use the new clear method, this is just an alias. |
||
75 | */ |
||
76 | public function flush() |
||
80 | |||
81 | public function clear() |
||
85 | |||
86 | protected function addCachedHeader(Response $response): Response |
||
94 | |||
95 | /** |
||
96 | * @param string|array $uris |
||
97 | */ |
||
98 | public function forget($uris): self |
||
114 | |||
115 | /** |
||
116 | * @param string|array $uris |
||
117 | */ |
||
118 | public function forgetByPrefix($prefix): self |
||
124 | } |
||
125 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..