diff --git a/app/core/Session.php b/app/core/Session.php index 83fe466..c0fe5eb 100644 --- a/app/core/Session.php +++ b/app/core/Session.php @@ -17,7 +17,8 @@ class Session return array_key_exists($key, $_SESSION); } - public function get(string $key): mixed + // Returns mixed but php 7.4 DOES NOT SUPPORT THAT TYPE HINT >:(( + public function get(string $key) { if ($this->has($key)) { @@ -26,7 +27,7 @@ class Session return NULL; } - public function set(string $key, mixed $value): void + public function set(string $key, $value): void { $_SESSION[$key] = $value; }