We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6c75fd commit 8ad66f6Copy full SHA for 8ad66f6
src/Facade/DB.php
@@ -153,9 +153,9 @@ public static function __callStatic($name, $arguments)
153
return self::getDatabase()->{$name}(...$arguments);
154
}
155
156
- public static function createImmutable(array $credentials)
+ public static function createImmutable(array $credentials): Database
157
{
158
- self::$databaseInstance = new Database($credentials);
+ return self::$databaseInstance = new Database($credentials);
159
160
161
private static function getDatabase(): Database
0 commit comments