Skip to content

Commit 630a362

Browse files
committed
fix phpstan errors
1 parent b8ef8cb commit 630a362

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/Keboola/StorageApi/Client.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3333,25 +3333,35 @@ private function filterRequestOptions($requestOptions)
33333333
private function getAuthTokenClass(array $credentials): FetchAuthTokenInterface
33343334
{
33353335
return new class ($credentials) implements FetchAuthTokenInterface {
3336+
/** @var array<mixed> */
33363337
private array $creds;
33373338

3339+
/**
3340+
* @param array<mixed> $creds
3341+
*/
33383342
public function __construct(
33393343
array $creds,
33403344
) {
33413345
$this->creds = $creds;
33423346
}
33433347

3344-
public function fetchAuthToken(?callable $httpHandler = null)
3348+
/**
3349+
* @return array<mixed>
3350+
*/
3351+
public function fetchAuthToken(?callable $httpHandler = null): array
33453352
{
33463353
return $this->creds;
33473354
}
33483355

3349-
public function getCacheKey()
3356+
public function getCacheKey(): string
33503357
{
33513358
return '';
33523359
}
33533360

3354-
public function getLastReceivedToken()
3361+
/**
3362+
* @return array<mixed>
3363+
*/
3364+
public function getLastReceivedToken(): array
33553365
{
33563366
return $this->creds;
33573367
}

0 commit comments

Comments
 (0)