Skip to content

Commit fc77af7

Browse files
committed
Fix CS
1 parent 489badc commit fc77af7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Consumption/Extension/DoctrinePingConnectionExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Doctrine\Persistence\ManagerRegistry;
77
use Enqueue\Consumption\Context\MessageReceived;
88
use Enqueue\Consumption\MessageReceivedExtensionInterface;
9-
use ReflectionMethod;
109

1110
class DoctrinePingConnectionExtension implements MessageReceivedExtensionInterface
1211
{
@@ -39,7 +38,7 @@ public function onMessageReceived(MessageReceived $context): void
3938
$connection->close();
4039
if (
4140
method_exists($connection, 'connect')
42-
&& (new ReflectionMethod($connection, 'connect'))->isPublic()
41+
&& (new \ReflectionMethod($connection, 'connect'))->isPublic()
4342
) {
4443
// DBAL < 4
4544
$connection->connect();

Tests/Unit/Consumption/Extension/DoctrinePingConnectionExtensionTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Interop\Queue\Processor;
1515
use PHPUnit\Framework\MockObject\MockObject;
1616
use PHPUnit\Framework\TestCase;
17-
use ReflectionMethod;
1817

1918
class DoctrinePingConnectionExtensionTest extends TestCase
2019
{
@@ -44,7 +43,7 @@ public function testShouldNotReconnectIfConnectionIsOK()
4443
;
4544
if (
4645
method_exists(Connection::class, 'connect')
47-
&& (new ReflectionMethod(Connection::class, 'connect'))->isPublic()
46+
&& (new \ReflectionMethod(Connection::class, 'connect'))->isPublic()
4847
) {
4948
// DBAL < 4
5049
$connection->expects($this->never())
@@ -93,7 +92,7 @@ public function testShouldDoesReconnectIfConnectionFailed()
9392
;
9493
if (
9594
method_exists(Connection::class, 'connect')
96-
&& (new ReflectionMethod(Connection::class, 'connect'))->isPublic()
95+
&& (new \ReflectionMethod(Connection::class, 'connect'))->isPublic()
9796
) {
9897
// DBAL < 4
9998
$connection->expects($this->once())

0 commit comments

Comments
 (0)