Skip to content

Commit a3e2f38

Browse files
committed
fix dummy context
Signed-off-by: Robert Landers <landers.robert@gmail.com>
1 parent c5b30ac commit a3e2f38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Testing/DummyOrchestrationContext.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ public function asUser(string $userId): void
106106

107107
public function callActivity(
108108
string $name,
109-
array $args = [],
109+
?string $returnType = null,
110110
?RetryOptions $retryOptions = null,
111+
mixed ...$args,
111112
): DurableFuture {
112113
$future = new DeferredFuture();
113114
if ($this->activities[$name] ?? false) {
@@ -118,7 +119,7 @@ public function callActivity(
118119
$future->complete($result);
119120
}
120121

121-
return new DurableFuture($future);
122+
return new DurableFuture($future, $returnType);
122123
}
123124

124125
throw new LogicException('Failed to find registered activity: ' . $name);

0 commit comments

Comments
 (0)