Skip to content

Commit cbe0d18

Browse files
committed
Formatting and types hint
1 parent c5d5bb8 commit cbe0d18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/functions.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1057,14 +1057,14 @@ function get_browser_real_ip() {
10571057

10581058
return '0';
10591059
}
1060-
function setSession($key, $data) {
1060+
function setSession($key, $data): void {
10611061
$_SESSION[setting('core.session_prefix') . $key] = $data;
10621062
}
10631063
function getSession($key) {
10641064
$key = setting('core.session_prefix') . $key;
1065-
return isset($_SESSION[$key]) ? $_SESSION[$key] : false;
1065+
return $_SESSION[$key] ?? false;
10661066
}
1067-
function unsetSession($key) {
1067+
function unsetSession($key): void {
10681068
unset($_SESSION[setting('core.session_prefix') . $key]);
10691069
}
10701070

0 commit comments

Comments
 (0)