Wrong type hint for \Drupal\search_api_attachments\ExtractFileValidator::getExcludedMimes $extensions

Created on 6 February 2023, almost 2 years ago
Updated 21 February 2023, over 1 year ago

Problem/Motivation

The type hint for the $extensions parameter in \Drupal\search_api_attachments\ExtractFileValidator::getExcludedMimes is 'string' but should be 'array'. PHPStan complains when I send it an array.

All code in the module already sends an array, so this is a docs change only.

Steps to reproduce

Check the code and the code that calls it, and see it is always using an array.

Proposed resolution

Fix the type hint.

Remaining tasks

Review patch.

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

🇳🇱Netherlands Lendude Amsterdam

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

Comments & Activities

Production build 0.71.5 2024