mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
update return datatype
This commit is contained in:
parent
c632cbc7a2
commit
0618233d64
1 changed files with 2 additions and 2 deletions
|
|
@ -205,7 +205,7 @@ class Database
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSession(): ?array
|
public function getSession(): array
|
||||||
{
|
{
|
||||||
$query = $this->_database->query(
|
$query = $this->_database->query(
|
||||||
'SELECT * FROM `session`'
|
'SELECT * FROM `session`'
|
||||||
|
|
@ -216,7 +216,7 @@ class Database
|
||||||
return $session;
|
return $session;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function cleanSession(): int
|
public function cleanSession(): int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue