diff --git a/src/contracts/Repository/Events/Content/BeforeLoadContentEvent.php b/src/contracts/Repository/Events/Content/BeforeLoadContentEvent.php index c8910b5279..dfa12d96f1 100644 --- a/src/contracts/Repository/Events/Content/BeforeLoadContentEvent.php +++ b/src/contracts/Repository/Events/Content/BeforeLoadContentEvent.php @@ -30,7 +30,7 @@ final class BeforeLoadContentEvent extends BeforeEvent */ public function __construct( int $contentId, - array $languages = null, + ?array $languages = null, ?int $versionNo = null, bool $useAlwaysAvailable = true ) { diff --git a/src/contracts/Repository/Events/Content/LoadContentEvent.php b/src/contracts/Repository/Events/Content/LoadContentEvent.php index 4bf18cd089..71b6a4d9b0 100644 --- a/src/contracts/Repository/Events/Content/LoadContentEvent.php +++ b/src/contracts/Repository/Events/Content/LoadContentEvent.php @@ -30,7 +30,7 @@ final class LoadContentEvent extends AfterEvent public function __construct( Content $content, int $contentId, - array $languages = null, + ?array $languages = null, ?int $versionNo = null, bool $useAlwaysAvailable = true ) { diff --git a/src/lib/Event/ContentService.php b/src/lib/Event/ContentService.php index 2ed15452bd..1a744d9907 100644 --- a/src/lib/Event/ContentService.php +++ b/src/lib/Event/ContentService.php @@ -385,7 +385,7 @@ public function revealContent(ContentInfo $contentInfo): void public function loadContent( int $contentId, - array $languages = null, + ?array $languages = null, ?int $versionNo = null, bool $useAlwaysAvailable = true ): Content {