mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
fix tests
This commit is contained in:
parent
ac5273bbc5
commit
b51dfbd9ca
|
|
@ -60,6 +60,10 @@ final class MysqlConnection extends ConnectionAbstract
|
|||
*/
|
||||
public function connect(array $dbdata = null) : void
|
||||
{
|
||||
if ($this->status === DatabaseStatus::OK) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dbdata = $dbdata ?? $this->dbdata;
|
||||
|
||||
if (!isset($this->dbdata['db'], $this->dbdata['host'], $this->dbdata['port'], $this->dbdata['database'], $this->dbdata['login'], $this->dbdata['password'])
|
||||
|
|
|
|||
|
|
@ -60,6 +60,10 @@ final class PostgresConnection extends ConnectionAbstract
|
|||
*/
|
||||
public function connect(array $dbdata = null) : void
|
||||
{
|
||||
if ($this->status === DatabaseStatus::OK) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dbdata = $dbdata ?? $this->dbdata;
|
||||
|
||||
if (!isset($this->dbdata['db'], $this->dbdata['host'], $this->dbdata['port'], $this->dbdata['database'], $this->dbdata['login'], $this->dbdata['password'])
|
||||
|
|
|
|||
|
|
@ -68,6 +68,10 @@ final class SQLiteConnection extends ConnectionAbstract
|
|||
*/
|
||||
public function connect(array $dbdata = null) : void
|
||||
{
|
||||
if ($this->status === DatabaseStatus::OK) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dbdata = $dbdata ?? $this->dbdata;
|
||||
|
||||
if (!isset($this->dbdata['db'], $this->dbdata['database'])
|
||||
|
|
|
|||
|
|
@ -60,6 +60,10 @@ final class SqlServerConnection extends ConnectionAbstract
|
|||
*/
|
||||
public function connect(array $dbdata = null) : void
|
||||
{
|
||||
if ($this->status === DatabaseStatus::OK) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dbdata = $dbdata ?? $this->dbdata;
|
||||
|
||||
if (!isset($this->dbdata['db'], $this->dbdata['host'], $this->dbdata['port'], $this->dbdata['database'], $this->dbdata['login'], $this->dbdata['password'])
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ abstract class RequestAbstract implements MessageInterface
|
|||
}
|
||||
|
||||
/* @phpstan-ignore-next-line */
|
||||
$list = \explode($delim, $this->data[$key]);
|
||||
$list = \explode($delim, (string) $this->data[$key]);
|
||||
if ($list === false) {
|
||||
return []; // @codeCoverageIgnore
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user