Skip to content

Commit 8ad66f6

Browse files
Update DB.php
1 parent f6c75fd commit 8ad66f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Facade/DB.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ public static function __callStatic($name, $arguments)
153153
return self::getDatabase()->{$name}(...$arguments);
154154
}
155155

156-
public static function createImmutable(array $credentials)
156+
public static function createImmutable(array $credentials): Database
157157
{
158-
self::$databaseInstance = new Database($credentials);
158+
return self::$databaseInstance = new Database($credentials);
159159
}
160160

161161
private static function getDatabase(): Database

0 commit comments

Comments
 (0)