Ensured base path is not prefixed more than it should

This commit is contained in:
Alejandro Celaya
2022-03-14 19:26:02 +01:00
parent 01bae358f9
commit 613bdd82b0
4 changed files with 4 additions and 37 deletions

View File

@@ -209,7 +209,7 @@ class ListShortUrlsCommand extends AbstractWithDateRangeCommand
}
if ($input->getOption('show-api-key')) {
$columnsMap['API Key'] = static fn (array $_, ShortUrl $shortUrl): string =>
(string) $shortUrl->authorApiKey();
$shortUrl->authorApiKey()?->__toString() ?? '';
}
if ($input->getOption('show-api-key-name')) {
$columnsMap['API Key Name'] = static fn (array $_, ShortUrl $shortUrl): ?string =>