【发布时间】:2020-11-26 12:42:44
【问题描述】:
我在 laravel 8 中使用护照包 10 创建护照令牌时出错。在运行 composer update 命令之前一切正常。当我运行 composer update 命令时,我得到了这个错误:-
message: "Method Laravel\Passport\Bridge\AccessToken::__toString() must not throw an
exception, caught ErrorException: Using integers for registered date claims is
deprecated, please use DateTimeImmutable objects instead."
exception: "Symfony\Component\ErrorHandler\Error\FatalError"
请在解决此错误时提供帮助。任何帮助都将不胜感激。
【问题讨论】:
-
github.com/laravel/passport/issues/1380 看起来像一个错误。
标签: laravel