mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
100% test coverage
This commit is contained in:
@@ -153,10 +153,9 @@ abstract class AbstractTokenEntity
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (is_null($this->token)) {
|
||||
throw new \BadMethodCallException('Token is null');
|
||||
if ($this->token === null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user