Skip to content

Commit

Permalink
Fix command kaliop:workflows:workflow --info to be compatible with …
Browse files Browse the repository at this point in the history
…php 7.4
  • Loading branch information
gggeek committed Oct 19, 2022
1 parent cb31485 commit 8ab300b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Command/WorkflowCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions WHATSNEW.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 8ab300b

Please sign in to comment.