From 801572ea2c6dc64cb01b2e79e5ba14e41989e46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anke=20H=C3=A4slich?= Date: Sun, 16 Apr 2023 16:07:00 +0200 Subject: [PATCH] BUGFIX: Fix usage of value object `ContentStreamId` in `ContentStreamCommandController` Relates: #4156 --- .../Classes/Command/ContentStreamCommandController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Neos.ContentRepositoryRegistry/Classes/Command/ContentStreamCommandController.php b/Neos.ContentRepositoryRegistry/Classes/Command/ContentStreamCommandController.php index 964de307bb7..b16a562ba76 100644 --- a/Neos.ContentRepositoryRegistry/Classes/Command/ContentStreamCommandController.php +++ b/Neos.ContentRepositoryRegistry/Classes/Command/ContentStreamCommandController.php @@ -132,8 +132,8 @@ public function pruneCommand(string $contentRepositoryIdentifier = 'default', bo $unusedContentStreams = $contentStreamPruner->prune($removeTemporary); $unusedContentStreamsPresent = false; - foreach ($unusedContentStreams as $contentStream) { - $this->outputFormatted('Removed %s', [$contentStream]); + foreach ($unusedContentStreams as $contentStreamId) { + $this->outputFormatted('Removed %s', [$contentStreamId->value]); $unusedContentStreamsPresent = true; } if (!$unusedContentStreamsPresent) { @@ -151,8 +151,8 @@ public function pruneRemovedFromEventStreamCommand(string $contentRepositoryIden $unusedContentStreams = $contentStreamPruner->pruneRemovedFromEventStream(); $unusedContentStreamsPresent = false; - foreach ($unusedContentStreams as $contentStream) { - $this->outputFormatted('Removed events for %s', [$contentStream]); + foreach ($unusedContentStreams as $contentStreamId) { + $this->outputFormatted('Removed events for %s', [$contentStreamId->value]); $unusedContentStreamsPresent = true; } if (!$unusedContentStreamsPresent) {