diff --git a/src/WorkflowStub.php b/src/WorkflowStub.php index 3c3baf7..efac40d 100644 --- a/src/WorkflowStub.php +++ b/src/WorkflowStub.php @@ -321,7 +321,8 @@ private function dispatch(): void $this->storedWorkflow->status->transitionTo(WorkflowPendingStatus::class); if (static::faked()) { - $this->storedWorkflow->class::dispatchNow( + $method = version_compare(App::version(), '10', '>=') ? 'dispatchSync' : 'dispatchNow'; + $this->storedWorkflow->class::$method( $this->storedWorkflow, ...Y::unserialize($this->storedWorkflow->arguments) );
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: