hook_query_TAG_alter() implementations get a AlterableInterface parameter not SelectInterface

Created on 12 January 2023, almost 2 years ago
Updated 17 July 2023, over 1 year ago

Problem/Motivation

entity_query_entity_query_alter() which is a hook_query_TAG_alter() implementation incorrectly expects a \Drupal\Core\Database\Query\SelectInterface type parameter because based on the hook documentation it gets a \Drupal\Core\Database\Query\AlterableInterface (that can also implement SelectInterface...).

https://github.com/drupal/core/blob/10.0.1/lib/Drupal/Core/Database/data...

I have set priority to major because it causes a fatal error with custom query implementations.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Core integration

Created by

🇭🇺Hungary mxr576 Hungary

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024