Open huaidan9527 opened 4 years ago
Same. Happens in php version 7.1 for me.
Code cannot be less than php7.2 You can consider upgrading your PHP version
Those on older PHP version can use a simpler function as below in "ASDecoder.php" . I used it on PHP 7.0 It will return an array instead of the object.
public static function getAppleSignInArray(string $identityToken)
{
$identityPayload = self::decodeIdentityToken($identityToken);
return (array) $identityPayload;
}
Those on older PHP version can use a simpler function as below in "ASDecoder.php" . I used it on PHP 7.0 It will return an array instead of the object.
public static function getAppleSignInArray(string $identityToken) { $identityPayload = self::decodeIdentityToken($identityToken); return (array) $identityPayload; }
This function does not exists inside ASDecodes.php, did I get it wrong?
Can't get it to work on PHP 7.1
Hope support php7.1.
Type error: Return value of AppleSignIn\ASDecoder::decodeIdentityToken() must be an instance of AppleSignIn\object, instance of stdClass returned