TypeError: node_singles_module_implements_alter(): Argument #2 ($hook) must be of type string, int given

Created on 14 March 2025, 23 days ago

Problem/Motivation

In very specific situations (see #3508292), the $hook argument of hook_module_implements_alter() implementations can contain an integer instead of a string.

Steps to reproduce

Install both the pathauto and pathauto_update modules.

Proposed resolution

Change the type hint to allow integers.

🐛 Bug report
Status

Active

Version

3.4

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024