MAPG-199 fix issues found by PHPStan

This commit is contained in:
bence committed 2020-07-05 23:18:56 +02:00
1 parent 39d691fd7f
commit af98d71924
34 files changed
+89 -68

No files matched your search

+2 -2
View File
@@ -69,7 +69,7 @@ class DatabaseSessionHandler implements ISessionHandler
return true;
}
public function gc($maxlifetime): int
public function gc($maxlifetime): bool
{
// empty on purpose
// old sessions are deleted by MaintainDatabaseCommand
@@ -84,7 +84,7 @@ class DatabaseSessionHandler implements ISessionHandler
public function validateId($id): bool
{
return preg_match('/^[a-f0-9]{32}$/', $id);
return preg_match('/^[a-f0-9]{32}$/', $id) === 1;
}
public function updateTimestamp($id, $data): bool