mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
- fix: incompatibility with SessionUpdateTimestampHandlerInterface in PHP 7.x
This commit is contained in:
parent
9c020ded6d
commit
25f4818d2e
1 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
/*
|
||||
This file is a part of myTinyTodo.
|
||||
|
|
@ -128,7 +128,7 @@ class MTTSessionHandler implements SessionHandlerInterface, SessionUpdateTimesta
|
|||
* @param string $id
|
||||
* @return bool
|
||||
*/
|
||||
public function validateId(string $id): bool
|
||||
public function validateId($id): bool
|
||||
{
|
||||
$r = $this->db->sq("SELECT COUNT(*) FROM {$this->db->prefix}sessions WHERE id = ?", [$id]);
|
||||
if ($r)
|
||||
|
|
@ -142,7 +142,7 @@ class MTTSessionHandler implements SessionHandlerInterface, SessionUpdateTimesta
|
|||
* @param string $data
|
||||
* @return bool
|
||||
*/
|
||||
public function updateTimestamp(string $id, string $data): bool
|
||||
public function updateTimestamp($id, $data): bool
|
||||
{
|
||||
// Warning if return false
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue