Skip to content

Commit f08a062

Browse files
author
georgio
committed
fix sleep method
1 parent c3b5e51 commit f08a062

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/OAuth/Common/Token/AbstractToken.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,9 @@ public function isExpired()
122122
&& $this->getEndOfLife() !== TokenInterface::EOL_UNKNOWN
123123
&& time() > $this->getEndOfLife();
124124
}
125+
126+
public function __sleep()
127+
{
128+
return ['accessToken'];
129+
}
125130
}

0 commit comments

Comments
 (0)