File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,9 @@ public static function destroy()
120
120
}
121
121
122
122
/*
123
- * ArrayAccess
123
+ * ArrayAccess : bool
124
124
*/
125
- public function offsetExists ($ offset )
125
+ public function offsetExists ($ offset ): bool
126
126
{
127
127
return isset ($ _SESSION [$ offset ]);
128
128
}
@@ -133,19 +133,19 @@ public function offsetExists($offset)
133
133
*
134
134
* @param string $offset
135
135
*
136
- * @return mixed
136
+ * @return mixed (write offsetGet($offset): mixed on PHP 8 and & > )
137
137
*/
138
138
public function offsetGet ($ offset )
139
139
{
140
140
return self ::read ($ offset );
141
141
}
142
142
143
- public function offsetSet ($ offset , $ value )
143
+ public function offsetSet ($ offset , $ value ): void
144
144
{
145
145
self ::write ($ offset , $ value );
146
146
}
147
147
148
- public function offsetUnset ($ offset )
148
+ public function offsetUnset ($ offset ): void
149
149
{
150
150
unset($ _SESSION [$ offset ]);
151
151
}
You can’t perform that action at this time.
0 commit comments