我如何解决Deprecated:非静态方法Session :: get()不应在第13行的C:\ xampp \ htdocs \ ooplr \ classes \ token.php中静态调用[复制]

This code generates hashed password

class Token {
    public static function generate()
    {
        return Session::put(Config::get('session/token_name'), md5(uniqid()));
    }

    public static function check($token)
    {
        $tokenName = Config::get('session/token_name');

        if (Session::exists($tokenName) && $token === Session::get($tokenName)) 
        {
            return true;
        }

        return false;
    }
}

But then I can't debug this program , please what's wrong it. thanks in ADVANCE

</div>

You need to change your Session class get function declaration.

From:

function get()

to:

public static function get()