diff --git a/module/Core/src/ShortUrl/Entity/ShortUrl.php b/module/Core/src/ShortUrl/Entity/ShortUrl.php index 35c0dfd2..ac50064c 100644 --- a/module/Core/src/ShortUrl/Entity/ShortUrl.php +++ b/module/Core/src/ShortUrl/Entity/ShortUrl.php @@ -265,7 +265,7 @@ class ShortUrl extends AbstractEntity } /** - * @param null|(callable(): string|null) $getAuthority - + * @param null|(callable(): ?string) $getAuthority - * This is a callback so that we trust its return value if provided, even if it is null. * Providing the raw authority as `string|null` would result in a fallback to `$this->domain` when the authority * was null. diff --git a/module/Core/src/ShortUrl/Repository/ShortUrlListRepository.php b/module/Core/src/ShortUrl/Repository/ShortUrlListRepository.php index 67d85b77..8c49697a 100644 --- a/module/Core/src/ShortUrl/Repository/ShortUrlListRepository.php +++ b/module/Core/src/ShortUrl/Repository/ShortUrlListRepository.php @@ -56,7 +56,7 @@ class ShortUrlListRepository extends EntitySpecificationRepository implements Sh $this->processOrderByForList($qb, $filtering); - /** @var array{shortUrl: ShortUrl, visits: string, nonBotVisits: string}[] $result */ + /** @var array{shortUrl: ShortUrl, visits: string, nonBotVisits: string, authority: string|null}[] $result */ $result = $qb->getQuery()->getResult(); return map($result, static fn (array $s) => ShortUrlWithVisitsSummary::fromArray($s)); }