Skip to content

Commit 85b0dcc

Browse files
Merge pull request #58664 from nextcloud/bugfix/noid/workflowengine-fix-checks-list
fix(workflowengine): Fix list of checks being a list instead of array…
2 parents 687d828 + 1bc0bd7 commit 85b0dcc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

apps/workflowengine/lib/Manager.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,8 @@ protected function addScope(int $operationId, ScopeContext $scope): void {
616616
public function formatOperation(array $operation): array {
617617
$checkIds = json_decode($operation['checks'], true);
618618

619-
/** @var list<WorkflowEngineCheck> $checks */
620619
$checks = $this->getChecks($checkIds);
621-
$operation['checks'] = $checks;
620+
$operation['checks'] = array_values($checks);
622621

623622
/** @var list<class-string<IEntityEvent>> $events */
624623
$events = json_decode($operation['events'], true) ?? [];

0 commit comments

Comments
 (0)