Skip to content

Commit

Permalink
PHP-CS-Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Aug 28, 2024
1 parent 7a9f46e commit 2487b4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Provider/Doctrine/Persistence/Helper/PlatformHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\AbstractMySQLDriver;
use Doctrine\DBAL\Driver\ServerInfoAwareConnection;
use ReflectionClass;

abstract class PlatformHelper
{
Expand Down Expand Up @@ -35,7 +36,7 @@ public static function isIndexLengthLimited(string $name, Connection $connection

$mariadb = false !== mb_stripos($version, 'mariadb');

$reflectedClass = new \ReflectionClass(AbstractMySQLDriver::class);
$reflectedClass = new ReflectionClass(AbstractMySQLDriver::class);
$reflectedMethod = $reflectedClass->getMethod($mariadb ? 'getMariaDbMysqlVersionNumber' : 'getOracleMysqlVersionNumber');
$reflectedMethod->setAccessible(true);

Expand Down Expand Up @@ -65,7 +66,7 @@ public static function isJsonSupported(Connection $connection): bool
return true;
}

$reflectedClass = new \ReflectionClass(AbstractMySQLDriver::class);
$reflectedClass = new ReflectionClass(AbstractMySQLDriver::class);
$reflectedMethod = $reflectedClass->getMethod('getMariaDbMysqlVersionNumber');
$reflectedMethod->setAccessible(true);

Expand Down

0 comments on commit 2487b4a

Please sign in to comment.