MimeTypeGuesser::guess() is deprecated

Created on 7 February 2024, 11 months ago
Updated 21 February 2024, 11 months ago

Problem/Motivation

In Drupal 10 MimeTypeGuesser::guess() is replaced by MimeTypeGuesser::guessMimeType(). See change record MimeTypeGuesser::guess() is deprecated .

This is throwing deprecation warnings in Drupal 9.1 and fatal errors in Drupal 10.

Steps to reproduce

Upload a file in a webform through a GraphQL mutation query.

Proposed resolution

Let's fix the deprecation and bump the minimum requirement to Drupal 9.1 so we don't need to provide a backwards compatibility layer to Drupal 9.0 and below which have been out of support for a long time.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

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