Passing null to parameter to strpos() is deprecated

Created on 28 March 2022, over 2 years ago
Updated 6 August 2024, 4 months ago

Problem/Motivation

With Drupal 9.3.9 and PHP 8 .1 I got the following warning:
Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated ΓΌzenet file_icon_class()

It appears when files mime type cannot be determined by $file->getMimeType();

Proposed resolution

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
File systemΒ  β†’

Last updated about 11 hours ago

Created by

πŸ‡­πŸ‡ΊHungary suchdavid

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024