mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
Fix Psalm issues
This commit is contained in:
parent
ce05172932
commit
259946d961
6 changed files with 33 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue