Browse Source

update return datatype

PHP-GTK3
yggverse 4 months ago
parent
commit
0618233d64
  1. 4
      src/Model/Database.php

4
src/Model/Database.php

@ -205,7 +205,7 @@ class Database @@ -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 @@ -216,7 +216,7 @@ class Database
return $session;
}
return null;
return [];
}
public function cleanSession(): int

Loading…
Cancel
Save