mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45: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(
|
||||
'SELECT * FROM `session`'
|
||||
|
|
@ -216,7 +216,7 @@ class Database
|
|||
return $session;
|
||||
}
|
||||
|
||||
return null;
|
||||
return [];
|
||||
}
|
||||
|
||||
public function cleanSession(): int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue