file_validate_extensions() is deprecated in 10.2 and removed in 11

Created on 31 October 2024, about 2 months ago

Problem/motivation

Upgrade Status reports the following problem when scanning 7.x-dev for Drupal 11 compatibility:

web/modules/contrib/linkit/src/Plugin/Linkit/Matcher/FileMatcher.php
199 Call to deprecated function file_validate_extensions(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

Steps to reproduce

  1. Run Upgrade Status on the linkit module.

Proposed resolution

To keep 10.1 support, use file.validator for 10.2 and above, and keep file_validate_extensions for 10.1

πŸ“Œ Task
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom nicrodgers Monmouthshire, UK

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