Skip to content

Commit d27ebe8

Browse files
committed
Add #[\Override] to the BatchFake class methods
1 parent f18288f commit d27ebe8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Illuminate/Support/Testing/Fakes/BatchFake.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function __construct(
6767
*
6868
* @return self
6969
*/
70+
#[\Override]
7071
public function fresh()
7172
{
7273
return $this;
@@ -78,6 +79,7 @@ public function fresh()
7879
* @param \Illuminate\Support\Enumerable|object|array $jobs
7980
* @return self
8081
*/
82+
#[\Override]
8183
public function add($jobs)
8284
{
8385
$jobs = Collection::wrap($jobs);
@@ -97,6 +99,7 @@ public function add($jobs)
9799
* @param string $jobId
98100
* @return void
99101
*/
102+
#[\Override]
100103
public function recordSuccessfulJob(string $jobId)
101104
{
102105
//
@@ -108,6 +111,7 @@ public function recordSuccessfulJob(string $jobId)
108111
* @param string $jobId
109112
* @return void
110113
*/
114+
#[\Override]
111115
public function decrementPendingJobs(string $jobId)
112116
{
113117
//
@@ -120,6 +124,7 @@ public function decrementPendingJobs(string $jobId)
120124
* @param \Throwable $e
121125
* @return void
122126
*/
127+
#[\Override]
123128
public function recordFailedJob(string $jobId, $e)
124129
{
125130
//
@@ -131,6 +136,7 @@ public function recordFailedJob(string $jobId, $e)
131136
* @param string $jobId
132137
* @return \Illuminate\Bus\UpdatedBatchJobCounts
133138
*/
139+
#[\Override]
134140
public function incrementFailedJobs(string $jobId)
135141
{
136142
return new UpdatedBatchJobCounts;
@@ -141,6 +147,7 @@ public function incrementFailedJobs(string $jobId)
141147
*
142148
* @return void
143149
*/
150+
#[\Override]
144151
public function cancel()
145152
{
146153
$this->cancelledAt = Carbon::now();
@@ -151,6 +158,7 @@ public function cancel()
151158
*
152159
* @return void
153160
*/
161+
#[\Override]
154162
public function delete()
155163
{
156164
$this->deleted = true;

0 commit comments

Comments
 (0)