fixed database handler for DBmodel in Maintenance,

added test4 for Maintenance
This commit is contained in:
2025-05-29 22:55:10 +02:00
parent 0642d7a8ca
commit c2773db2dd
4 changed files with 183 additions and 62 deletions

View File

@ -27,7 +27,7 @@ class DBmodel
public $log = null;
public $tables = array();
public function __construct(string $dsn = null, ?string $username = null, #[\SensitiveParameter] ?string $password = null, ?array $options = null)
public function __construct(?string $dsn = null, ?string $username = null, #[\SensitiveParameter] ?string $password = null, ?array $options = null)
{
if (is_null($dsn)) {
if (DBmodel::$instance) {