Skip to content

Commit 0abf4ce

Browse files
authored
Fix missingType.return errors
1 parent 50b3f57 commit 0abf4ce

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

system/Session/SessionInterface.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ interface SessionInterface
2323
*
2424
* @param bool $destroy Should old session data be destroyed?
2525
*/
26-
public function regenerate(bool $destroy = false);
26+
public function regenerate(bool $destroy = false): void;
2727

2828
/**
2929
* Destroys the current session.
3030
*/
31-
public function destroy();
31+
public function destroy(): void;
3232

3333
/**
3434
* Sets user data into the session.
@@ -42,7 +42,7 @@ public function destroy();
4242
* @param array|string $data Property name or associative array of properties
4343
* @param array|bool|float|int|object|string|null $value Property value if single key provided
4444
*/
45-
public function set($data, $value = null);
45+
public function set($data, $value = null): void;
4646

4747
/**
4848
* Get user data that has been set in the session.
@@ -75,7 +75,7 @@ public function has(string $key): bool;
7575
*
7676
* @param array|string $key Identifier of the session property or properties to remove.
7777
*/
78-
public function remove($key);
78+
public function remove($key): void;
7979

8080
/**
8181
* Sets data into the session that will only last for a single request.
@@ -89,7 +89,7 @@ public function remove($key);
8989
* @param array|string $data Property identifier or associative array of properties
9090
* @param array|string $value Property value if $data is a scalar
9191
*/
92-
public function setFlashdata($data, $value = null);
92+
public function setFlashdata($data, $value = null): void;
9393

9494
/**
9595
* Retrieve one or more items of flash data from the session.
@@ -108,7 +108,7 @@ public function getFlashdata(?string $key = null);
108108
*
109109
* @param array|string $key Property identifier or array of them
110110
*/
111-
public function keepFlashdata($key);
111+
public function keepFlashdata($key): void;
112112

113113
/**
114114
* Mark a session property or properties as flashdata.
@@ -124,7 +124,7 @@ public function markAsFlashdata($key);
124124
*
125125
* @param array|string $key Property identifier or array of them
126126
*/
127-
public function unmarkFlashdata($key);
127+
public function unmarkFlashdata($key): void;
128128

129129
/**
130130
* Retrieve all of the keys for session data marked as flashdata.
@@ -141,7 +141,7 @@ public function getFlashKeys(): array;
141141
* @param array|bool|float|int|object|string|null $value Value to store
142142
* @param int $ttl Time-to-live in seconds
143143
*/
144-
public function setTempdata($data, $value = null, int $ttl = 300);
144+
public function setTempdata($data, $value = null, int $ttl = 300): void;
145145

146146
/**
147147
* Returns either a single piece of tempdata, or all temp data currently
@@ -158,7 +158,7 @@ public function getTempdata(?string $key = null);
158158
*
159159
* @param string $key Session data key
160160
*/
161-
public function removeTempdata(string $key);
161+
public function removeTempdata(string $key): void;
162162

163163
/**
164164
* Mark one of more pieces of data as being temporary, meaning that
@@ -177,7 +177,7 @@ public function markAsTempdata($key, int $ttl = 300);
177177
*
178178
* @param array|string $key Property identifier or array of them
179179
*/
180-
public function unmarkTempdata($key);
180+
public function unmarkTempdata($key): void;
181181

182182
/**
183183
* Retrieve the keys of all session data that have been marked as temporary data.

0 commit comments

Comments
 (0)