diff --git a/Neos.ContentRepository.BehavioralTests/Classes/PhpstanRules/InternalMethodsNotAllowedOutsideContentRepositoryRule.php b/Neos.ContentRepository.BehavioralTests/Classes/PhpstanRules/InternalMethodsNotAllowedOutsideContentRepositoryRule.php
index 5dae4e82dfc..4a2417de07f 100644
--- a/Neos.ContentRepository.BehavioralTests/Classes/PhpstanRules/InternalMethodsNotAllowedOutsideContentRepositoryRule.php
+++ b/Neos.ContentRepository.BehavioralTests/Classes/PhpstanRules/InternalMethodsNotAllowedOutsideContentRepositoryRule.php
@@ -74,7 +74,7 @@ public function processNode(Node $node, Scope $scope): array
$targetClassName,
$node->name->toString()
)
- )->build(),
+ )->identifier('neos.internal')->build(),
];
}
}
diff --git a/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php b/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php
index 346b6b25dd0..7914b0c72a4 100644
--- a/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php
+++ b/Neos.ContentRepositoryRegistry/Classes/Command/CrCommandController.php
@@ -280,7 +280,7 @@ public function listCommand(bool $verbose = false): void
$liveContentGraph = null;
try {
- $liveContentGraph = $contentRepository->getContentGraph(WorkspaceName::forLive());
+ $liveContentGraph = $contentRepository?->getContentGraph(WorkspaceName::forLive());
} catch (WorkspaceDoesNotExist) {
$this->outputLine('Live workspace in content repository %s not existing.', [$contentRepositoryId->value]);
}
@@ -298,6 +298,7 @@ public function listCommand(bool $verbose = false): void
if ($sitesAggregate) {
$siteNodeAggregates = $liveContentGraph->findChildNodeAggregates($sitesAggregate->nodeAggregateId);
foreach ($siteNodeAggregates as $siteNodeAggregate) {
+ assert($siteNodeAggregate->nodeName !== null);
$currenSiteNodes[] = $siteNodeAggregate->nodeName->value;
}
}
@@ -340,6 +341,7 @@ public function listCommand(bool $verbose = false): void
if ($verbose) {
try {
+ /** @phpstan-ignore neos.internal */
$contentStreamsString = sprintf('%d found', iterator_count($contentRepository->getContentStreamFinder()->findAllIds()));
} catch (\RuntimeException $e) {
$this->outputLine('ContentStreamFinder of %s not functional: %s.', [$contentRepositoryId->value, $e->getMessage()]);
diff --git a/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php b/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php
index d14764dc086..4a62124b983 100644
--- a/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php
+++ b/Neos.ContentRepositoryRegistry/Classes/ContentRepositoryRegistry.php
@@ -86,6 +86,7 @@ public function get(ContentRepositoryId $contentRepositoryId): ContentRepository
*/
public function getContentRepositoryIds(): iterable
{
+ /** @phpstan-ignore argument.type */
return array_map(ContentRepositoryId::fromString(...), array_keys($this->settings['contentRepositories'] ?? []));
}