Skip to content

Conversation

AhmedAlaa4611
Copy link
Contributor

Description

The current example uses return with the job's handle() method which returns void, this causes a PHP error:

A void method must not return a value

The example is updated to simply call cancel() without returning its result. This makes the code matches the actual method signature.

@taylorotwell taylorotwell merged commit 1224d08 into laravel:12.x Aug 22, 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