From f87a72f233f7c84d58a517e276423d434a173488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tu=C4=8Dek?= Date: Sat, 30 Jan 2021 20:50:05 +0100 Subject: [PATCH] Changed Sessions methods visibility --- Session.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Session.php b/Session.php index 5a33804..16677a1 100644 --- a/Session.php +++ b/Session.php @@ -10,17 +10,17 @@ */ class Session { - public function set(string $key, $value) + public static function set(string $key, $value) { $_SESSION[$key] = $value; } - public function get(string $key) + public static function get(string $key) { return $_SESSION[$key] ?? false; } - public function remove(string $key) + public static function remove(string $key) { unset($_SESSION[$key]); }