Skip to content

Commit 0726d26

Browse files
tanlisujmikola
andauthored
Update src/Database.php
Co-authored-by: Jeremy Mikola <[email protected]>
1 parent 0db017c commit 0726d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ public function modifyCollection($collectionName, array $collectionOptions, arra
487487
public function renameCollection(string $fromCollectionName, string $toCollectionName, ?string $toDatabaseName = null, array $options = [])
488488
{
489489
if (! isset($toDatabaseName)) {
490-
$toDatabaseName = $this->getDatabaseName();
490+
$toDatabaseName = $this->databaseName;
491491
}
492492

493493
if (! isset($options['typeMap'])) {

0 commit comments

Comments
 (0)