From 374478e3cf87199d999c6f0c45c50ce59e3e3c13 Mon Sep 17 00:00:00 2001 From: Bastian Waidelich Date: Fri, 2 Aug 2024 12:21:47 +0200 Subject: [PATCH] Add type hint to satisfy linter --- .../Classes/ContentRepositoryRegistry.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php b/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php index f1c6f43ffc5..1de26c1378d 100644 --- a/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php +++ b/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php @@ -85,7 +85,9 @@ public function get(ContentRepositoryId $contentRepositoryId): ContentRepository public function getContentRepositoryIds(): ContentRepositoryIds { - return ContentRepositoryIds::fromArray(array_keys($this->settings['contentRepositories'] ?? [])); + /** @var array $contentRepositoryIds */ + $contentRepositoryIds = array_keys($this->settings['contentRepositories'] ?? []); + return ContentRepositoryIds::fromArray($contentRepositoryIds); } /**