Skip to content

Commit

Permalink
Changed Sessions methods visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cpt-erwin committed Jan 30, 2021
1 parent 028f3a4 commit f87a72f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit f87a72f

Please sign in to comment.