Skip to content

Commit 09bbbd6

Browse files
committed
Fix CS
1 parent 65c7385 commit 09bbbd6

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

pkg/dbal/ManagerRegistryConnectionFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Doctrine\Persistence\ManagerRegistry;
99
use Interop\Queue\ConnectionFactory;
1010
use Interop\Queue\Context;
11-
use ReflectionMethod;
1211

1312
class ManagerRegistryConnectionFactory implements ConnectionFactory
1413
{
@@ -64,7 +63,7 @@ private function establishConnection(): Connection
6463
$connection = $this->registry->getConnection($this->config['connection_name']);
6564
if (
6665
method_exists($connection, 'connect')
67-
&& (new ReflectionMethod($connection, 'connect'))->isPublic()
66+
&& (new \ReflectionMethod($connection, 'connect'))->isPublic()
6867
) {
6968
// DBAL < 4
7069
$connection->connect();

pkg/enqueue-bundle/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();

pkg/enqueue-bundle/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)