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 42bae8e commit cacb83dCopy full SHA for cacb83d
src/Libraries/Db/MariaDb.php
@@ -28,9 +28,9 @@ public function __construct(string $driver = 'mysql')
28
]);
29
}
30
31
- public static function instance(): self
+ public static function instance(bool $auto_construct = true): ?self
32
{
33
- if (!self::$instance) self::$instance = new self();
+ if (!self::$instance && $auto_construct) self::$instance = new self();
34
return self::$instance;
35
36
0 commit comments