jwt: InMemory cannot implement Lcobucci\JWT\Signer\Key

Getting this error in latest version please help Fatal error: Lcobucci\JWT\Signer\Key\InMemory cannot implement Lcobucci\JWT\Signer\Key - it is not an interface in /var/www/wmd/current/wmdcore-nightly/vendor/lcobucci/jwt/src/Signer/Key/InMemory.php on line 14

Laravel version: 8.x JWT: 4.1.5 php: 7.4.28

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

@anshulCoder would you please verify what your system says in runtime? Having something like this on the InMemory.php file should do the trick as it would be executed when autoloading it =)

$ref = new \ReflectionClass(\Lcobucci\JWT\Signer\Key::class);
var_dump(
    $ref->isInterface(),
    $ref->getFileName()
);
die();