Skip to content

Commit b6f739c

Browse files
committed
Remove ShouldQueue type hint from ActionsTrait methods
1 parent 3fb502d commit b6f739c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Traits/ActionsTrait.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Safemood\Workflow\Traits;
44

5-
use Illuminate\Contracts\Queue\ShouldQueue;
65
use Safemood\Workflow\Action;
76

87
trait ActionsTrait
@@ -13,7 +12,7 @@ trait ActionsTrait
1312

1413
protected $afterActions = [];
1514

16-
public function addBeforeAction(Action|ShouldQueue $action)
15+
public function addBeforeAction(Action $action)
1716
{
1817
$this->beforeActions[] = $action;
1918

@@ -29,7 +28,7 @@ public function addBeforeActions(array $actions)
2928
return $this;
3029
}
3130

32-
public function addMainAction(Action|ShouldQueue $action)
31+
public function addMainAction(Action $action)
3332
{
3433
$this->mainActions[] = $action;
3534

@@ -45,7 +44,7 @@ public function addMainActions(array $actions)
4544
return $this;
4645
}
4746

48-
public function addAfterAction(Action|ShouldQueue $action)
47+
public function addAfterAction(Action $action)
4948
{
5049
$this->afterActions[] = $action;
5150

0 commit comments

Comments
 (0)