|
@@ -3466,7 +3466,7 @@ class GenericDB
|
3466
|
3466
|
private $columns;
|
3467
|
3467
|
private $converter;
|
3468
|
3468
|
|
3469
|
|
- private function getDsn(string $address, string $port = null, string $database = null): string
|
|
3469
|
+ private function getDsn(string $address, string $port, string $database): string
|
3470
|
3470
|
{
|
3471
|
3471
|
switch ($this->driver) {
|
3472
|
3472
|
case 'mysql':return "$this->driver:host=$address;port=$port;dbname=$database;charset=utf8mb4";
|
|
@@ -3514,7 +3514,7 @@ class GenericDB
|
3514
|
3514
|
}
|
3515
|
3515
|
}
|
3516
|
3516
|
|
3517
|
|
- public function __construct(string $driver, string $address, string $port = null, string $database = null, string $username = null, string $password = null)
|
|
3517
|
+ public function __construct(string $driver, string $address, string $port, string $database, string $username, string $password)
|
3518
|
3518
|
{
|
3519
|
3519
|
$this->driver = $driver;
|
3520
|
3520
|
$this->database = $database;
|
|
@@ -7200,7 +7200,7 @@ class Config
|
7200
|
7200
|
return $this->values['cacheTime'];
|
7201
|
7201
|
}
|
7202
|
7202
|
|
7203
|
|
- public function getDebug(): string
|
|
7203
|
+ public function getDebug(): bool
|
7204
|
7204
|
{
|
7205
|
7205
|
return $this->values['debug'];
|
7206
|
7206
|
}
|