Add ReturnTypeWillChange attribute to methods in Session\Handler\Cache
- Addess deprecated messages reported in https://github.com/friendica/friendica/issues/13699#issue-2028442214
This commit is contained in:
parent
dc7cdc3252
commit
b16e8fdb58
|
@ -46,6 +46,7 @@ class Cache extends AbstractSessionHandler
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function read($id)
|
public function read($id)
|
||||||
{
|
{
|
||||||
if (empty($id)) {
|
if (empty($id)) {
|
||||||
|
@ -77,6 +78,7 @@ class Cache extends AbstractSessionHandler
|
||||||
*
|
*
|
||||||
* @return bool Returns false if parameters are missing, true otherwise
|
* @return bool Returns false if parameters are missing, true otherwise
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function write($id, $data): bool
|
public function write($id, $data): bool
|
||||||
{
|
{
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
|
@ -110,6 +112,7 @@ class Cache extends AbstractSessionHandler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function gc($max_lifetime): bool
|
public function gc($max_lifetime): bool
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user