Skip to content

Commit 59ca3d1

Browse files
Revert "Pass the limiter to the when & report callbacks (#56129)" (#56184)
This reverts commit 372a22a.
1 parent 5b5e52a commit 59ca3d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Illuminate/Queue/Middleware/ThrottlesExceptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ public function handle($job, $next)
104104

105105
$this->limiter->clear($jobKey);
106106
} catch (Throwable $throwable) {
107-
if ($this->whenCallback && ! call_user_func($this->whenCallback, $throwable, $this->limiter)) {
107+
if ($this->whenCallback && ! call_user_func($this->whenCallback, $throwable)) {
108108
throw $throwable;
109109
}
110110

111-
if ($this->reportCallback && call_user_func($this->reportCallback, $throwable, $this->limiter)) {
111+
if ($this->reportCallback && call_user_func($this->reportCallback, $throwable)) {
112112
report($throwable);
113113
}
114114

src/Illuminate/Queue/Middleware/ThrottlesExceptionsWithRedis.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public function handle($job, $next)
5050

5151
$this->limiter->clear();
5252
} catch (Throwable $throwable) {
53-
if ($this->whenCallback && ! call_user_func($this->whenCallback, $throwable, $this->limiter)) {
53+
if ($this->whenCallback && ! call_user_func($this->whenCallback, $throwable)) {
5454
throw $throwable;
5555
}
5656

57-
if ($this->reportCallback && call_user_func($this->reportCallback, $throwable, $this->limiter)) {
57+
if ($this->reportCallback && call_user_func($this->reportCallback, $throwable)) {
5858
report($throwable);
5959
}
6060

0 commit comments

Comments
 (0)