Skip to content

Commit 4501cb9

Browse files
committed
fix: remove unecessary class_exists() call
1 parent 8607daf commit 4501cb9

File tree

1 file changed

+1
-2
lines changed
  • src/MartinGeorgiev/Doctrine/DBAL/Types

1 file changed

+1
-2
lines changed

src/MartinGeorgiev/Doctrine/DBAL/Types/Ltree.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str
8686

8787
private function assertPostgreSQLPlatform(AbstractPlatform $platform): void
8888
{
89-
$isDbalTwoPostgres = \class_exists(PostgreSQLPlatform::class)
90-
&& \is_a($platform, '\Doctrine\DBAL\Platforms\PostgreSqlPlatform');
89+
$isDbalTwoPostgres = \is_a($platform, '\Doctrine\DBAL\Platforms\PostgreSqlPlatform');
9190

9291
if ($platform instanceof PostgreSQLPlatform || $isDbalTwoPostgres) {
9392
return;

0 commit comments

Comments
 (0)