Skip to content

Commit 46b42b1

Browse files
authored
Ensures cronExpression type in WorkflowStarter
1 parent c3d3369 commit 46b42b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Internal/Client/WorkflowStarter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function start(
8686
->setTaskQueue(new TaskQueue(['name' => $options->taskQueue]))
8787
->setWorkflowType(new WorkflowType(['name' => $workflowType]))
8888
->setWorkflowId($workflowId)
89-
->setCronSchedule($options->cronSchedule)
89+
->setCronSchedule($options->cronSchedule ?? '')
9090
->setRetryPolicy($options->toRetryPolicy())
9191
->setWorkflowIdReusePolicy($options->workflowIdReusePolicy)
9292
->setWorkflowRunTimeout(DateInterval::toDuration($options->workflowRunTimeout))
@@ -152,7 +152,7 @@ public function signalWithStart(
152152
->setTaskQueue(new TaskQueue(['name' => $options->taskQueue]))
153153
->setWorkflowType(new WorkflowType(['name' => $workflowType]))
154154
->setWorkflowId($workflowId)
155-
->setCronSchedule($options->cronSchedule)
155+
->setCronSchedule($options->cronSchedule ?? '')
156156
->setRetryPolicy($options->toRetryPolicy())
157157
->setWorkflowIdReusePolicy($options->workflowIdReusePolicy)
158158
->setWorkflowRunTimeout(DateInterval::toDuration($options->workflowRunTimeout))

0 commit comments

Comments
 (0)