8000 [Cache] Fix phpdoc · symfony/cache@fd45cf1 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd45cf1

Browse files
[Cache] Fix phpdoc
1 parent 9fa39bf commit fd45cf1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Tests/Adapter/TagAwareAdapterTest.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\Component\Cache\Adapter\ArrayAdapter;
1919
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
2020
use Symfony\Component\Cache\Adapter\TagAwareAdapter;
21+
use Symfony\Component\Cache\PruneableInterface;
2122
use Symfony\Component\Cache\Tests\Fixtures\PrunableAdapter;
2223

2324
/**
@@ -197,9 +198,9 @@ public function testGetItemReturnsCacheMissWhenPoolDoesNotHaveItemAndOnlyHasTags
197198
}
198199

199200
/**
200-
* @return MockObject&PruneableCacheInterface
201+
* @return PruneableInterface&MockObject
201202
*/
202-
private function getPruneableMock(): AdapterInterface
203+
private function getPruneableMock(): PruneableInterface
203204
{
204205
$pruneable = $this->createMock(PrunableAdapter::class);
205206

@@ -211,7 +212,10 @@ private function getPruneableMock(): AdapterInterface
211212
return $pruneable;
212213
}
213214

214-
private function getFailingPruneableMock(): AdapterInterface
215+
/**
216+
* @return PruneableInterface&MockObject
217+
*/
218+
private function getFailingPruneableMock(): PruneableInterface
215219
{
216220
$pruneable = $this->createMock(PrunableAdapter::class);
217221

@@ -223,6 +227,9 @@ private function getFailingPruneableMock(): AdapterInterface
223227
return $pruneable;
224228
}
225229

230+
/**
231+
* @return AdapterInterface&MockObject
232+
*/
226233
private function getNonPruneableMock(): AdapterInterface
227234
{
228235
return $this->createMock(AdapterInterface::class);

0 commit comments

Comments
 (0)
0