Skip to content

Illuminate\Queue\Jobs\DatabaseJob::getJobId does not respect its interface #55080

Closed
@petrknap

Description

@petrknap

Laravel Version

11.44.1

PHP Version

8.3.17

Database Driver & Version

No response

Description

Method Illuminate\Queue\Jobs\Job::getJobId is annotated by @return string, but in fact in Illuminate\Queue\Jobs\DatabaseJob it returns $this->job->id which is annotate like stdClass and is mixed.

Steps To Reproduce

  1. Set-up DB queue with integer primary key
  2. Try to process a job
  3. The method getJobId returns integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions