Skip to content

Commit 0b82a67

Browse files
committed
minor symfony#59717 Fix return type of mock factory in Redis ConnectionTest (alexandre-daubois)
This PR was merged into the 7.3 branch. Discussion ---------- Fix return type of mock factory in Redis `ConnectionTest` | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT The return type is wrong, causing warnings being raised by IDE when calling mock methods on the return value. Commits ------- eb3bf17 Fix return type of mock in Redis `ConnectionTest`
2 parents e9aa2ad + eb3bf17 commit 0b82a67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/ConnectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Messenger\Bridge\Redis\Tests\Transport;
1313

14+
use PHPUnit\Framework\MockObject\MockObject;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Component\Messenger\Bridge\Redis\Transport\Connection;
1617
use Symfony\Component\Messenger\Exception\TransportException;
@@ -524,7 +525,7 @@ public function testKeepaliveWithTooSmallTtl()
524525
$connection->keepalive('redisid-123', 3000);
525526
}
526527

527-
private function createRedisMock(): \Redis
528+
private function createRedisMock(): MockObject&\Redis
528529
{
529530
$redis = $this->createMock(\Redis::class);
530531
$redis->expects($this->any())

0 commit comments

Comments
 (0)