projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7cdc3
)
Add ReturnTypeWillChange attribute to methods in Session\Handler\Cache
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 7 Dec 2023 12:23:17 +0000
(07:23 -0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 7 Dec 2023 12:23:17 +0000
(07:23 -0500)
- Addess deprecated messages reported in https://github.com/friendica/friendica/issues/13699#issue-
2028442214
src/Core/Session/Handler/Cache.php
patch
|
blob
|
history
diff --git
a/src/Core/Session/Handler/Cache.php
b/src/Core/Session/Handler/Cache.php
index bf2dc61985b69d86828f40e813027ae6644fa47b..01c4394bbf77464baf27adf785878710eb614f9a 100644
(file)
--- a/
src/Core/Session/Handler/Cache.php
+++ b/
src/Core/Session/Handler/Cache.php
@@
-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;