Skip to content

Conversation

@TonsiTT
Copy link

@TonsiTT TonsiTT commented Nov 13, 2025

Prevents exception if setReport is given null as argument

@Linux123123
Copy link

I am also experiencing this issue, this PR fixes it

TypeError
Zackaj\LaravelDebounce\DebounceJob::setReport(): Argument #1 ($report) must be of type Zackaj\LaravelDebounce\Trackers\Report, null given, called in .../vendor/zackaj/laravel-debounce/src/Debouncers/JobDebouncer.php on line 26

@zackAJ zackAJ self-requested a review November 14, 2025 16:05
@zackAJ
Copy link
Owner

zackAJ commented Nov 14, 2025

Thanks @TonsiTT for contributing, Can you add a test for this case ?
If not let me know and I'll take a look.

@TonsiTT
Copy link
Author

TonsiTT commented Nov 14, 2025

Not exactly sure on the test case. I am using on a job normally and some runs of the job give this error. I am not using any other aspect of the library apart from 'extends'

class ProductUpdateJob extends DebounceJob

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.

3 participants