Skip to content

[12.x] Add missing docblock param in FailedOver event docblocks - #58123

Merged
taylorotwell merged 2 commits into
laravel:12.xfrom
jackbayliss:add-failover-throwable-param-comment
Dec 15, 2025
Merged

taylorotwell merged 2 commits into
laravel:12.xfrom
jackbayliss:add-failover-throwable-param-comment

Conversation

@jackbayliss

@jackbayliss jackbayliss commented Dec 15, 2025 •

Copy link
Copy Markdown
Contributor

I was poking about thinking about a new Failover class for something👀 but noticed these.

Just for clarity, tooling, and static analysis / aligns with everywhere else.

@jackbayliss jackbayliss changed the title [12.x] Add missing param in FailedOver event docblocks [12.x] Add missing docblock param in FailedOver event docblocks Dec 15, 2025
@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

Comment on lines +13 to 18
* @param \Closure|string|object $command The job instance.
* @param Throwable $exception The exception that was thrown.
*/
public function __construct(
public ?string $connectionName,
public mixed $command,

@jackbayliss jackbayliss Dec 15, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docblock was set to $job rather than $command (what it is currently), but feels like it really should be $job - dunno if its a BC, so up to you on that 🫡 - I can adjust if you prefer.

@jackbayliss
jackbayliss marked this pull request as ready for review December 15, 2025 10:08
@taylorotwell taylorotwell reopened this Dec 15, 2025
@taylorotwell
taylorotwell merged commit b63ee45 into laravel:12.x Dec 15, 2025
141 checks passed
akyrey pushed a commit to akyrey/framework that referenced this pull request Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants