diff --git a/CHANGELOG-3.x.md b/CHANGELOG-3.x.md index 1e05ae8..df9b8ca 100644 --- a/CHANGELOG-3.x.md +++ b/CHANGELOG-3.x.md @@ -2,6 +2,10 @@ This changelog references the relevant changes done in 3.x versions. +## v3.0.1 +* Fix bug with sprintf and enum (can't cast to string) in ReindexNodesCommand and SyncNodesCommand. + + ## v3.0.0 __BREAKING CHANGES__ diff --git a/src/Command/ReindexNodesCommand.php b/src/Command/ReindexNodesCommand.php index 71aba58..60b7a3a 100644 --- a/src/Command/ReindexNodesCommand.php +++ b/src/Command/ReindexNodesCommand.php @@ -139,7 +139,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int 'etag:%s, title:%s', $i, $node->generateNodeRef(), - $node->get('status'), + $node->fget('status'), $node->get('etag'), $node->get('title') )); diff --git a/src/Command/SyncNodesCommand.php b/src/Command/SyncNodesCommand.php index 0ebc92a..78e85e2 100644 --- a/src/Command/SyncNodesCommand.php +++ b/src/Command/SyncNodesCommand.php @@ -142,7 +142,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $i, $aggregate->getEtag() !== $expectedEtag ? 'SYNCED' : 'MATCHED', $nodeRef, - $node->get('status'), + $node->fget('status'), $node->get('etag'), $node->get('title') ));