Skip to content

Commit d9ca867

Browse files
[DoctrineBridge] Fix
1 parent d8ac787 commit d9ca867

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Symfony/Bridge/Doctrine/SchemaListener/AbstractSchemaListener.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,9 @@ protected function getIsSameDatabaseChecker(Connection $connection): \Closure
5959
}
6060

6161
try {
62-
$rowCount = $connection->executeStatement('DELETE FROM _schema_subscriber_check WHERE key == :key', ['key' => $key], ['key' => Types::STRING]);
63-
64-
return 0 === $rowCount;
62+
return !$connection->executeStatement('DELETE FROM _schema_subscriber_check WHERE key == :key', ['key' => $key], ['key' => Types::STRING]);
6563
} finally {
66-
[$count] = $connection->executeQuery('SELECT count(id) FROM _schema_subscriber_check')->fetchOne();
67-
68-
if (!$count) {
64+
if (!$connection->executeQuery('SELECT count(id) FROM _schema_subscriber_check')->fetchOne()) {
6965
try {
7066
$schemaManager->dropTable('_schema_subscriber_check');
7167
} catch (DatabaseObjectNotFoundException) {

0 commit comments

Comments
 (0)