PHP 8 compatibility: Error: Unknown named parameter $template_id in mandrill_mailsend()

Created on 5 December 2023, 7 months ago

Problem/Motivation

On PHP I get the following error when using the Mandrill Template module:
Error: Unknown named parameter $template_id in mandrill_mailsend() (line 173 of mandrill/mandrill.module).

This happens because the sematics of call_user_func_array() has changed.

Proposed resolution

Do not used string array keys and use just the array values before passing to call_user_func_array(), then it behaves the same as on PHP 7 and below.

API changes

None.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024