Skip to content

Commit

Permalink
Avoid usage of deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Gruber committed Sep 11, 2019
1 parent 3c391cd commit f35afdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Console/Command/MigrationsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O
}

if (!$migration instanceof MongoDbMigrations\RunAlwaysMigrationInterface) {
if ($databaseMigrationsCollection->count(['migration_id' => $id]) > 0) {
if ($databaseMigrationsCollection->countDocuments(['migration_id' => $id]) > 0) {
continue;
}
}
Expand Down

0 comments on commit f35afdf

Please sign in to comment.