facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.96k forks source link

Updating getExpiresAt docblock #1075

Open garethpelly opened 5 years ago

garethpelly commented 5 years ago

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.