"Call to undefined method ..."



我正在使用ReallySimpleJWT库,我已经更改了服务器,并再次使用Composer重新安装了库。只有这个图书馆出了一个错误,我不明白为什么。

可能是什么问题?

2022/01/03 22:28:51[error]2739#2739:*1635在stderr中发送的FastCGI:"PHP消息:PHP致命错误:未捕获错误:调用未定义中的方法ReallySimpleJWT\Token::validateExpiration((/var/。。。。。。。php:23

第23行:

$result = Token::validateExpiration($token, $secretForToken);

这个错误的原因可能是什么?

作曲:

web2@serve:/var/www/.../panel$ composer require rbdwllr/reallysimplejwt
Using version ^3.1 for rbdwllr/reallysimplejwt
./composer.json has been updated
Running composer update rbdwllr/reallysimplejwt
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package easyframework/collections is abandoned, you should avoid using it. No replacement was suggested.
Package easyframework/generics is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
36 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

导致此错误的原因是什么?

您试图在Token上访问的静态方法类不存在。

最新更新