withStartToCloseTimeout(5) ); $result = []; $result[] = yield $simple->echo($input); try { $simple->undefined($input); } catch (\BadMethodCallException $e) { $result[] = 'invalid method call'; } // untyped stub $untyped = Workflow::newUntypedActivityStub(ActivityOptions::new()->withStartToCloseTimeout(1)); $result[] = yield $untyped->execute('SimpleActivity.echo', ['untyped']); return $result; } }