Skip to content

Commit 0c50cef

Browse files
committed
Correct the doc comment and typehint the return. Nullable because of unit tests
1 parent 1e3f2e8 commit 0c50cef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AntiMattr/MongoDB/Migrations/Configuration/Configuration.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use AntiMattr\MongoDB\Migrations\OutputWriter;
1818
use AntiMattr\MongoDB\Migrations\Version;
1919
use Doctrine\MongoDB\Connection;
20+
use Doctrine\MongoDB\Database;
2021

2122
/**
2223
* @author Matthew Fitzgerald <matthewfitz@gmail.com>
@@ -172,9 +173,9 @@ public function getConnection()
172173
}
173174

174175
/**
175-
* @return Doctrine\MongoDB\Connection
176+
* @return Doctrine\MongoDB\Database
176177
*/
177-
public function getDatabase()
178+
public function getDatabase(): ?Database
178179
{
179180
if (isset($this->database)) {
180181
return $this->database;

0 commit comments

Comments
 (0)