From 7486722113feef296188d790e3b4470c688d98d1 Mon Sep 17 00:00:00 2001 From: Richard McDaniel Date: Thu, 9 Nov 2023 16:24:16 +0000 Subject: [PATCH 1/2] Fix deprecated method --- src/WorkflowStub.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WorkflowStub.php b/src/WorkflowStub.php index 3c3baf7..b47caa2 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) ); From 320c5a5fee0e612f774ad7e8b54a15b53c2259af Mon Sep 17 00:00:00 2001 From: Richard McDaniel Date: Thu, 9 Nov 2023 16:31:39 +0000 Subject: [PATCH 2/2] Fix deprecated method --- src/WorkflowStub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WorkflowStub.php b/src/WorkflowStub.php index b47caa2..efac40d 100644 --- a/src/WorkflowStub.php +++ b/src/WorkflowStub.php @@ -321,7 +321,7 @@ private function dispatch(): void $this->storedWorkflow->status->transitionTo(WorkflowPendingStatus::class); if (static::faked()) { - $method = version_compare(app()->version(), '10', '>=') ? 'dispatchSync' : 'dispatchNow'; + $method = version_compare(App::version(), '10', '>=') ? 'dispatchSync' : 'dispatchNow'; $this->storedWorkflow->class::$method( $this->storedWorkflow, ...Y::unserialize($this->storedWorkflow->arguments) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy