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)

CommentFileSizeAuthor
#2 webpush-php8-batch-fix-3368147-2.patch441 bytesjieyyal

Comments

Jieyyal created an issue. See original summary.

jieyyal’s picture

StatusFileSize
new441 bytes

Creating the patch, removing subscription_id and data array key in batch operation function