daviddesberg / PHPoAuthLib

PHP 5.3+ oAuth 1/2 Client Library
Other
1.09k stars 453 forks source link

Serialising a token not including all values #584

Open aakifn opened 2 years ago

aakifn commented 2 years ago

This change implements a __sleep() method but as a result, anything other than the accessToken is not serialised. This means data such as the token lifetime or any extra params relating to the token are no longer persisted.

The PR it belongs to suggests it was PHP 8 related but I'm not sure why. What was the reasoning for this change?