Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require refresh token models to be Stringable #266

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Jul 19, 2021

The AbstractRefreshToken class adds __toString() to make the token models stringable (i.e. (string) $token). PHP 8 adds the Stringable interface to require this, and Symfony polyfills the interface for PHP 7. So, let's make this a hard requirement for the RefreshTokenInterface.

@markitosgv markitosgv merged commit 939b8f0 into markitosgv:master Jul 19, 2021
@mbabker mbabker deleted the stringable-tokens branch July 19, 2021 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants