Skip to content

Commit 95021af

Browse files
committed
wip
1 parent 7c5cac6 commit 95021af

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

api.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,7 +3466,7 @@ class GenericDB
34663466
private $columns;
34673467
private $converter;
34683468

3469-
private function getDsn(string $address, string $port = null, string $database = null): string
3469+
private function getDsn(string $address, string $port, string $database): string
34703470
{
34713471
switch ($this->driver) {
34723472
case 'mysql':return "$this->driver:host=$address;port=$port;dbname=$database;charset=utf8mb4";
@@ -3514,7 +3514,7 @@ private function getOptions(): array
35143514
}
35153515
}
35163516

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)
35183518
{
35193519
$this->driver = $driver;
35203520
$this->database = $database;
@@ -7200,7 +7200,7 @@ public function getCacheTime(): int
72007200
return $this->values['cacheTime'];
72017201
}
72027202

7203-
public function getDebug(): string
7203+
public function getDebug(): bool
72047204
{
72057205
return $this->values['debug'];
72067206
}

src/Tqdev/PhpCrudApi/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function getCacheTime(): int
147147
return $this->values['cacheTime'];
148148
}
149149

150-
public function getDebug(): string
150+
public function getDebug(): bool
151151
{
152152
return $this->values['debug'];
153153
}

src/Tqdev/PhpCrudApi/Database/GenericDB.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class GenericDB
1717
private $columns;
1818
private $converter;
1919

20-
private function getDsn(string $address, string $port = null, string $database = null): string
20+
private function getDsn(string $address, string $port, string $database): string
2121
{
2222
switch ($this->driver) {
2323
case 'mysql':return "$this->driver:host=$address;port=$port;dbname=$database;charset=utf8mb4";
@@ -65,7 +65,7 @@ private function getOptions(): array
6565
}
6666
}
6767

68-
public function __construct(string $driver, string $address, string $port = null, string $database = null, string $username = null, string $password = null)
68+
public function __construct(string $driver, string $address, string $port, string $database, string $username, string $password)
6969
{
7070
$this->driver = $driver;
7171
$this->database = $database;

0 commit comments

Comments
 (0)