Skip to content

Commit b616b87

Browse files
committed
fix intersection types in tests
1 parent d6e4f59 commit b616b87

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/CacheWarmer/AnnotationsCacheWarmerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function testWarmupRemoveCacheMisses()
169169
/**
170170
* @return MockObject&Reader
171171
*/
172-
private function getReadOnlyReader()
172+
private function getReadOnlyReader(): Reader
173173
{
174174
$readerMock = $this->createMock(Reader::class);
175175
$readerMock->expects($this->exactly(0))->method('getClassAnnotations');

Tests/Command/CachePoolDeleteCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testCommandDeleteFailed()
8686
/**
8787
* @return MockObject&KernelInterface
8888
*/
89-
private function getKernel()
89+
private function getKernel(): KernelInterface
9090
{
9191
$container = $this->createMock(ContainerInterface::class);
9292

Tests/Command/CachePruneCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private function getEmptyRewindableGenerator(): RewindableGenerator
5353
/**
5454
* @return MockObject&KernelInterface
5555
*/
56-
private function getKernel()
56+
private function getKernel(): KernelInterface
5757
{
5858
$container = $this->createMock(ContainerInterface::class);
5959

@@ -74,7 +74,7 @@ private function getKernel()
7474
/**
7575
* @return MockObject&PruneableInterface
7676
*/
77-
private function getPruneableInterfaceMock()
77+
private function getPruneableInterfaceMock(): PruneableInterface
7878
{
7979
$pruneable = $this->createMock(PruneableInterface::class);
8080
$pruneable

0 commit comments

Comments
 (0)