@@ -30,6 +30,7 @@ public function __construct(AbstractSessionHandler $handler, MarshallerInterface
30
30
/**
31
31
* @return bool
32
32
*/
33
+ #[\ReturnTypeWillChange]
33
34
public function open ($ savePath , $ name )
34
35
{
35
36
return $ this ->handler ->open ($ savePath , $ name );
@@ -38,6 +39,7 @@ public function open($savePath, $name)
38
39
/**
39
40
* @return bool
40
41
*/
42
+ #[\ReturnTypeWillChange]
41
43
public function close ()
42
44
{
43
45
return $ this ->handler ->close ();
@@ -46,14 +48,16 @@ public function close()
46
48
/**
47
49
* @return bool
48
50
*/
51
+ #[\ReturnTypeWillChange]
49
52
public function destroy ($ sessionId )
50
53
{
51
54
return $ this ->handler ->destroy ($ sessionId );
52
55
}
53
56
54
57
/**
55
- * @return bool
58
+ * @return int|false
56
59
*/
60
+ #[\ReturnTypeWillChange]
57
61
public function gc ($ maxlifetime )
58
62
{
59
63
return $ this ->handler ->gc ($ maxlifetime );
@@ -62,6 +66,7 @@ public function gc($maxlifetime)
62
66
/**
63
67
* @return string
64
68
*/
69
+ #[\ReturnTypeWillChange]
65
70
public function read ($ sessionId )
66
71
{
67
72
return $ this ->marshaller ->unmarshall ($ this ->handler ->read ($ sessionId ));
@@ -70,6 +75,7 @@ public function read($sessionId)
70
75
/**
71
76
* @return bool
72
77
*/
78
+ #[\ReturnTypeWillChange]
73
79
public function write ($ sessionId , $ data )
74
80
{
75
81
$ failed = [];
@@ -85,6 +91,7 @@ public function write($sessionId, $data)
85
91
/**
86
92
* @return bool
87
93
*/
94
+ #[\ReturnTypeWillChange]
88
95
public function validateId ($ sessionId )
89
96
{
90
97
return $ this ->handler ->validateId ($ sessionId );
@@ -93,6 +100,7 @@ public function validateId($sessionId)
93
100
/**
94
101
* @return bool
95
102
*/
103
+ #[\ReturnTypeWillChange]
96
104
public function updateTimestamp ($ sessionId , $ data )
97
105
{
98
106
return $ this ->handler ->updateTimestamp ($ sessionId , $ data );
0 commit comments