Skip to content

Commit cb2fe61

Browse files
committed
Fix missing ReturnTypeWillChange attributes
1 parent 117c833 commit cb2fe61

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Session/Storage/Handler/MongoDbSessionHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public function __construct(\MongoDB\Client $mongo, array $options)
8282
/**
8383
* @return bool
8484
*/
85+
#[\ReturnTypeWillChange]
8586
public function close()
8687
{
8788
return true;
@@ -135,6 +136,7 @@ protected function doWrite($sessionId, $data)
135136
/**
136137
* @return bool
137138
*/
139+
#[\ReturnTypeWillChange]
138140
public function updateTimestamp($sessionId, $data)
139141
{
140142
$expiry = new \MongoDB\BSON\UTCDateTime((time() + (int) ini_get('session.gc_maxlifetime')) * 1000);

Session/Storage/Handler/RedisSessionHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ protected function doDestroy($sessionId): bool
9797
/**
9898
* {@inheritdoc}
9999
*/
100+
#[\ReturnTypeWillChange]
100101
public function close(): bool
101102
{
102103
return true;
@@ -116,6 +117,7 @@ public function gc($maxlifetime)
116117
/**
117118
* @return bool
118119
*/
120+
#[\ReturnTypeWillChange]
119121
public function updateTimestamp($sessionId, $data)
120122
{
121123
return (bool) $this->redis->expire($this->prefix.$sessionId, (int) ($this->ttl ?? ini_get('session.gc_maxlifetime')));

0 commit comments

Comments
 (0)