Skip to content

Commit 9bf2d35

Browse files
authored
fix: better return types for Illuminate\Queue\Jobs\Job::getJobId() and Illuminate\Queue\Jobs\DatabaseJob::getJobId() methods (#55138)
#55080
1 parent 12dfad8 commit 9bf2d35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Queue/Jobs/DatabaseJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function attempts()
7878
/**
7979
* Get the job identifier.
8080
*
81-
* @return string
81+
* @return string|int
8282
*/
8383
public function getJobId()
8484
{

src/Illuminate/Queue/Jobs/Job.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ abstract class Job
6767
/**
6868
* Get the job identifier.
6969
*
70-
* @return string
70+
* @return string|int|null
7171
*/
7272
abstract public function getJobId();
7373

0 commit comments

Comments
 (0)