Change filter typehint from string to mixed

Created on 29 July 2025, 14 days ago

Problem/Motivation

In \Drupal\ai_search\AiVdbProviderSearchApiInterface::prepareFilters() we return mixed type. However, in \Drupal\ai\AiVdbProviderInterface::querySearch() and vectorSearch() we require a string type.

The doc blocks state:

   * @param mixed $filters
   *   The filters as prepared by the VDB provider in ::prepareFilters().

Which contradicts the param type.

Steps to reproduce (required for bugs, but not feature requests)

Proposed resolution

Change the string $filters = '' param in querySearch() and vectorSearch() to accept mixed type.

Remaining tasks

Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)

πŸ› Bug report
Status

Active

Version

1.2

Component

...to be triaged

Created by

πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

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