mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-11-30 03:03:18 +05:30
100% test coverage
This commit is contained in:
1 parent
f24d1be3e9
commit
9af1d2a201
4 files changed
+65
-5
No files matched your search
@@ -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