Skip to content

Commit

Permalink
Fix mapping for the Memo field (#290)
Browse files Browse the repository at this point in the history
Fixes the problem where WorkflowInfo doesnt retrieve the correct info when using Worker::getInfo().
This also fixes the problem where Workflow::getInfo()->searchableAttributes is null.
  • Loading branch information
malthesoelvberg authored Mar 9, 2023
1 parent 1f5d61c commit 17ef494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Workflow/WorkflowInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ final class WorkflowInfo
/**
* @var array|null
*/
#[Marshal(name: 'SearchAttributes', type: NullableType::class, of: ArrayType::class)]
#[Marshal(name: 'Memo', type: NullableType::class, of: ArrayType::class)]
public ?array $memo = null;

/**
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/DTO/WorkflowInfoTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function testMarshalling(): void
'ParentWorkflowNamespace' => null,
'ParentWorkflowExecution' => null,
'SearchAttributes' => null,
'Memo' => null,
'BinaryChecksum' => '',
];

Expand Down

0 comments on commit 17ef494

Please sign in to comment.