Problem/Motivation
PHP 8 Add webpush notification batch not working
Steps to reproduce
1.Go to /admin/content/webpush/add to create notification
2.Input the title & body
3.Click Send will trigger batch job
Expected: Batch run successfully and receive notification
Actual: Batch run error, checking watchdog error with:
Error: Cannot use positional argument after named argument in call_user_func_array() (line 243 of ..../includes/batch.inc)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webpush-php8-batch-fix-3368147-2.patch | 441 bytes | jieyyal |
Comments
Comment #2
jieyyal commentedCreating the patch, removing subscription_id and data array key in batch operation function