Open garethpelly opened 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.
expires_at = 0
unixtime
In this case, and as the code currently stands, the 0 integer will be the returned from the SDK when getExpiresAt() is called.
0
getExpiresAt()
This PR updates the docblock to indicate that either null, a \DateTime object or an int will be returned.
null
\DateTime
int
It's possible that an access token may indicate that it does not expire:
expires_at = 0
rather than returning a non-zerounixtime
.In this case, and as the code currently stands, the
0
integer will be the returned from the SDK whengetExpiresAt()
is called.This PR updates the docblock to indicate that either
null
, a\DateTime
object or anint
will be returned.