Skip to content

Commit 689a682

Browse files
authored
Fix deprecation and add baseline (#1096)
1 parent 958d9c1 commit 689a682

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/SessionHandler.php

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

98+
/**
99+
* @return bool
100+
*/
98101
#[\ReturnTypeWillChange]
99102
public function close()
100103
{
@@ -108,6 +111,9 @@ public function close()
108111
return $this->sessionWritten;
109112
}
110113

114+
/**
115+
* @return bool
116+
*/
111117
#[\ReturnTypeWillChange]
112118
public function destroy($sessionId)
113119
{
@@ -121,13 +127,19 @@ public function destroy($sessionId)
121127
return $this->sessionWritten = true;
122128
}
123129

130+
/**
131+
* @return bool
132+
*/
124133
#[\ReturnTypeWillChange]
125134
public function gc($maxLifetime)
126135
{
127136
// DynamoDB takes care of garbage collection
128137
return true;
129138
}
130139

140+
/**
141+
* @return bool
142+
*/
131143
#[\ReturnTypeWillChange]
132144
public function open($savePath, $name)
133145
{
@@ -136,6 +148,9 @@ public function open($savePath, $name)
136148
return true;
137149
}
138150

151+
/**
152+
* @return string
153+
*/
139154
#[\ReturnTypeWillChange]
140155
public function read($sessionId)
141156
{
@@ -161,6 +176,9 @@ public function read($sessionId)
161176
return $this->dataRead;
162177
}
163178

179+
/**
180+
* @return bool
181+
*/
164182
#[\ReturnTypeWillChange]
165183
public function write($sessionId, $sessionData)
166184
{

0 commit comments

Comments
 (0)