Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Updating getExpiresAt docblock #1075

Open
wants to merge 2 commits into
base: 5.x
Choose a base branch
from

Conversation

garethpelly
Copy link

@garethpelly garethpelly commented Nov 2, 2018

It's possible that an access token may indicate that it does not expire:
expires_at = 0 rather than returning a non-zero unixtime.

In this case, and as the code currently stands, the 0 integer will be the returned from the SDK when getExpiresAt() is called.

This PR updates the docblock to indicate that either null, a \DateTime object or an int will be returned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants