-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
Environment details
- OS: Linux Mint 21.3
- PHP version: 8.3.14
- Package name and version: google/apiclient v2.18.1
Steps to reproduce
- instanciate a new Google Client with a $jwt oject
$client = new Google\Client();
$jwt = new Firebase\JWT\JWT();
$jwt::$leeway = 50;
$client->setConfig('jwt', $jwt);- Call VerifyIdToken with the client
$client->verifyIdToken($someApiToken);- A 500 error is thrown
Google\\AccessToken\\Verify::__construct(): Argument #3 ($jwt) must be of type ?string, Firebase\\JWT\\JWT given, called in \/home\/bbousba\/dev\/provider-api\/vendor\/google\/apiclient\/src\/Client.php on line 848
The error is due to the newly ?string typing in src/AccessToken/Verify.php l.72 where it should be ?Firebase\JWT\JWT
public function __construct(
ClientInterface $http = null,
CacheItemPoolInterface $cache = null,
?string $jwt = null
)Thanks!
jose-ochoa and bshaffer
Metadata
Metadata
Assignees
Labels
No labels