Fix Psalm issues

This commit is contained in:
Oliver Davies 2020-06-05 21:37:17 +01:00
parent ce05172932
commit 259946d961
6 changed files with 33 additions and 4 deletions

View file

@ -4,10 +4,16 @@ declare(strict_types=1);
namespace Opdavies\Glassboxx\Request;
use RuntimeException;
final class AuthTokenRequest extends AbstractRequest implements AuthTokenRequestInterface
{
public function getToken(): string
{
if (!$this->config) {
throw new RuntimeException('There is no config');
}
$response = $this->client->request(
'POST',
self::ENDPOINT,