GriffinLedingham / php-apple-signin

🗝 Decode Apple Sign In client tokens in PHP
BSD 3-Clause "New" or "Revised" License
200 stars 87 forks source link

Fix for PHP version 7.1 #19

Open milosh012 opened 4 years ago

milosh012 commented 4 years ago

Fixing error that we have on old server with PHP ver 7.1.

Error was:

Type error: Return value of AppleSignIn\ASDecoder::decodeIdentityToken() must be an instance of AppleSignIn\object, instance of stdClass returned

Quick fix was just to not expect return type for method decodeIdentityToken

eddyson1006 commented 3 years ago

Need this changes to use in PHP 7.1.19