From 8ab300b985a45510315934804bcdc5738ec0c4b0 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 19 Oct 2022 11:51:17 +0000 Subject: [PATCH] Fix command `kaliop:workflows:workflow --info` to be compatible with php 7.4 --- Command/WorkflowCommand.php | 2 +- WHATSNEW.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Command/WorkflowCommand.php b/Command/WorkflowCommand.php index a6c317b..8cc9f66 100644 --- a/Command/WorkflowCommand.php +++ b/Command/WorkflowCommand.php @@ -110,7 +110,7 @@ protected function execute(InputInterface $input, OutputInterface $output) try { $workflowDefinitionCollection = $workflowService->getWorkflowsDefinitions(array($workflow->path)); if (count($workflowDefinitionCollection)) { - $workflowDefinition = reset($workflowDefinitionCollection); + $workflowDefinition = $workflowDefinitionCollection->reset(); $workflowDefinition = $workflowService->parseWorkflowDefinition($workflowDefinition); if ($workflowDefinition->status != MigrationDefinition::STATUS_PARSED) { diff --git a/WHATSNEW.md b/WHATSNEW.md index 41ba5b8..da42e21 100644 --- a/WHATSNEW.md +++ b/WHATSNEW.md @@ -3,6 +3,8 @@ Version 2.0 * Make compatible with eZMigrationBundle 5.13 and later (this means we have to drop compatibility with earlier versions) +* Fix command `kaliop:workflows:workflow --info` to be compatible with php 7.4 + * Move from `master` to `main` branch * Move from Travis to GitHub Actions for CI testing. Add some proper tests!