Skip to content

Commit bc17e39

Browse files
committed
Update DoctrineCommand.php
This condition execution costs less than previous one
1 parent f069b13 commit bc17e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/DoctrineCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function configureMigrations(ContainerInterface $container, Config
5757
$configuration->setName($container->getParameter('doctrine_migrations.name'));
5858
}
5959
// For backward compatibility, need use a table from parameters for overwrite the default configuration
60-
if (!$configuration->getMigrationsTableName() || !($configuration instanceof AbstractFileConfiguration)) {
60+
if (!($configuration instanceof AbstractFileConfiguration) || !$configuration->getMigrationsTableName()) {
6161
$configuration->setMigrationsTableName($container->getParameter('doctrine_migrations.table_name'));
6262
}
6363
// Migrations is not register from configuration loader

0 commit comments

Comments
 (0)