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

CommentFileSizeAuthor
fix-parameter-get_excluded_mimes.patch525 byteslendude

Comments

Lendude created an issue. See original summary.

izus’s picture

thanks

  • Lendude authored 4314ac1f on 9.0.x
    Issue #3339605 by Lendude, izus: Wrong type hint for \Drupal\...
izus’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.