diff --git a/src/lib/Tab/LocationView/AuthorsTab.php b/src/lib/Tab/LocationView/AuthorsTab.php index b8fc7ffbd5..b8cecb511a 100644 --- a/src/lib/Tab/LocationView/AuthorsTab.php +++ b/src/lib/Tab/LocationView/AuthorsTab.php @@ -95,7 +95,7 @@ private function supplyLastContributor(array &$parameters, VersionInfo $versionI private function supplyCreator(array &$parameters, ContentInfo $contentInfo): void { $parameters['creator'] = null; - $ownerId = $contentInfo->getOwner()->getUserId(); + $ownerId = $contentInfo->ownerId; if ((new UserExists($this->userService))->isSatisfiedBy($ownerId)) { $parameters['creator'] = $this->userService->loadUser($ownerId); diff --git a/src/lib/UI/Value/Content/VersionInfo.php b/src/lib/UI/Value/Content/VersionInfo.php index ea9cf5967d..9a4e224ad1 100644 --- a/src/lib/UI/Value/Content/VersionInfo.php +++ b/src/lib/UI/Value/Content/VersionInfo.php @@ -18,7 +18,7 @@ */ class VersionInfo extends CoreVersionInfo { - protected User $author; + protected ?User $author; /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Language[] */ protected array $translations;