February 6, 2024
PHP SDK v2.7.5
// Workflow context public function handle(string $userId, string $email) { // ... $activityStub = Workflow::newActivityStub(SubscriptionActivity::class, ActivityOptions::new()->withStartToCloseTimeout(10)); // Called method signature: // public function subscribe(string $email, string $userId, string $prefix = 'Dear', array $channels = ['main']): void yield $activityStub->subscribe(user: $userId, email: $email, channels: ['news']); // Arguments in correct order will be sent: $email, $userId, 'Dear', ['news'] // ...}
Full Changelog: v2.7.4...v2.7.5