mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added rest of tests to phpstan check
This commit is contained in:
@@ -363,7 +363,7 @@ class CreateShortUrlTest extends ApiTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{int $statusCode, array $payload}
|
||||
* @return array{int, array}
|
||||
*/
|
||||
private function createShortUrl(array $body = [], string $apiKey = 'valid_api_key', string $version = '2'): array
|
||||
{
|
||||
|
||||
@@ -62,13 +62,13 @@ class EditShortUrlTest extends ApiTestCase
|
||||
]];
|
||||
}
|
||||
|
||||
private function findShortUrlMetaByShortCode(string $shortCode): ?array
|
||||
private function findShortUrlMetaByShortCode(string $shortCode): array
|
||||
{
|
||||
$matchingShortUrl = $this->getJsonResponsePayload(
|
||||
$this->callApiWithKey(self::METHOD_GET, '/short-urls/' . $shortCode),
|
||||
);
|
||||
|
||||
return $matchingShortUrl['meta'] ?? null;
|
||||
return $matchingShortUrl['meta'] ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user