加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

jsonserializer – 未找到laravel接口’JsonSerializable’

发布时间:2020-12-16 18:41:42 所属栏目:百科 来源:网络整理
导读:我使用以下内容进行社交媒体登录申请 https://github.com/madewithlove/laravel-oauth2 但我得到这个错误 Symfony Component Debug Exception FatalErrorExceptionInterface 'JsonSerializable' not foundopen: /Applications/AMPPS/www/docsearch/v
我使用以下内容进行社交媒体登录申请
https://github.com/madewithlove/laravel-oauth2

但我得到这个错误

Symfony  Component  Debug  Exception  FatalErrorException
Interface 'JsonSerializable' not found
open: /Applications/AMPPS/www/docsearch/vendor/madewithlove/laravel-oauth2/src/OAuth2/Token/Access.php
 * @package    OAuth2
 * @category   Token
 * @author     Phil Sturgeon
 * @copyright  (c) 2011 HappyNinjas Ltd
 */

class Token_Access extends Token implements JsonSerializable
{
    /**
     * @var  string  access_token

解决方法

这实际上不是Laravel问题,而是与您的PHP版本有关.如果您查看官方PHP文档,您会看到此特定接口仅适用于PHP 5.4及更高版本.

资料来源:http://php.net/manual/en/class.jsonserializable.php

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读