File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 18
18
use Symfony \Component \Cache \Adapter \ArrayAdapter ;
19
19
use Symfony \Component \Cache \Adapter \FilesystemAdapter ;
20
20
use Symfony \Component \Cache \Adapter \TagAwareAdapter ;
21
+ use Symfony \Component \Cache \PruneableInterface ;
21
22
use Symfony \Component \Cache \Tests \Fixtures \PrunableAdapter ;
22
23
23
24
/**
@@ -197,9 +198,9 @@ public function testGetItemReturnsCacheMissWhenPoolDoesNotHaveItemAndOnlyHasTags
197
198
}
198
199
199
200
/**
200
- * @return MockObject&PruneableCacheInterface
201
+ * @return PruneableInterface&MockObject
201
202
*/
202
- private function getPruneableMock (): AdapterInterface
203
+ private function getPruneableMock (): PruneableInterface
203
204
{
204
205
$ pruneable = $ this ->createMock (PrunableAdapter::class);
205
206
@@ -211,7 +212,10 @@ private function getPruneableMock(): AdapterInterface
211
212
return $ pruneable ;
212
213
}
213
214
214
- private function getFailingPruneableMock (): AdapterInterface
215
+ /**
216
+ * @return PruneableInterface&MockObject
217
+ */
218
+ private function getFailingPruneableMock (): PruneableInterface
215
219
{
216
220
$ pruneable = $ this ->createMock (PrunableAdapter::class);
217
221
@@ -223,6 +227,9 @@ private function getFailingPruneableMock(): AdapterInterface
223
227
return $ pruneable ;
224
228
}
225
229
230
+ /**
231
+ * @return AdapterInterface&MockObject
232
+ */
226
233
private function getNonPruneableMock (): AdapterInterface
227
234
{
228
235
return $ this ->createMock (AdapterInterface::class);
You can’t perform that action at this time.
0 commit comments