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

Updating getExpiresAt docblock#1075

Open
garethpelly wants to merge 2 commits intofacebookarchive:5.xfrom
garethpelly:update_get_expiresat_docblock
Open

Updating getExpiresAt docblock#1075
garethpelly wants to merge 2 commits intofacebookarchive:5.xfrom
garethpelly:update_get_expiresat_docblock

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.

2 participants