Merge pull request #13703 from MrPetovan/bug/deprecated

Add ReturnTypeWillChange attribute to methods in Session\Handler\Cache
This commit is contained in:
Michael Vogel 2023-12-07 14:02:09 +01:00 committed by GitHub
commit 708d3892a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,7 @@ class Cache extends AbstractSessionHandler
return true;
}
#[\ReturnTypeWillChange]
public function read($id)
{
if (empty($id)) {
@ -77,6 +78,7 @@ class Cache extends AbstractSessionHandler
*
* @return bool Returns false if parameters are missing, true otherwise
*/
#[\ReturnTypeWillChange]
public function write($id, $data): bool
{
if (!$id) {
@ -110,6 +112,7 @@ class Cache extends AbstractSessionHandler
}
}
#[\ReturnTypeWillChange]
public function gc($max_lifetime): bool
{
return true;