Argument #4 ($value_raw) must be of type ?string, int given

Created on 21 August 2024, 3 months ago
Updated 18 September 2024, 3 months ago

Problem/Motivation

On a View that uses the Views filter summary, I have a categories filter, that have values, coming as IDs (integers). This causes the buildFilterSummaryItem() method in ViewsFiltersSummary to throw a TypeError, as it expects the 4th argument to be a string (from the type hint).

Drupal\views_filters_summary\Plugin\views\area\ViewsFiltersSummary::buildFilterSummaryItem(): Argument #4 ($value_raw) must be of type ?string, int given

Proposed resolution

Add also integer as part of the type hint for the 4th argument.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇬Bulgaria yivanov

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