Skip to content

Commit 960aafe

Browse files
authored
Fix 8.1 deprecations (#1037)
1 parent fd513c6 commit 960aafe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/SessionHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function setUp(): void
9595
]);
9696
}
9797

98+
#[\ReturnTypeWillChange]
9899
public function close()
99100
{
100101
$id = session_id();
@@ -107,6 +108,7 @@ public function close()
107108
return $this->sessionWritten;
108109
}
109110

111+
#[\ReturnTypeWillChange]
110112
public function destroy($sessionId)
111113
{
112114
$this->sessionId = $sessionId;
@@ -119,19 +121,22 @@ public function destroy($sessionId)
119121
return $this->sessionWritten = true;
120122
}
121123

124+
#[\ReturnTypeWillChange]
122125
public function gc($maxLifetime)
123126
{
124127
// DynamoDB takes care of garbage collection
125128
return true;
126129
}
127130

131+
#[\ReturnTypeWillChange]
128132
public function open($savePath, $name)
129133
{
130134
$this->sessionName = $name;
131135

132136
return true;
133137
}
134138

139+
#[\ReturnTypeWillChange]
135140
public function read($sessionId)
136141
{
137142
$this->sessionId = $sessionId;
@@ -156,6 +161,7 @@ public function read($sessionId)
156161
return $this->dataRead;
157162
}
158163

164+
#[\ReturnTypeWillChange]
159165
public function write($sessionId, $sessionData)
160166
{
161167
$this->sessionId = $sessionId;

0 commit comments

Comments
 (0)