Prepare for upstream changes in ImageUrlFormatter

Created on 11 October 2024, 6 months ago

Problem/Motivation

File formatter render absolute url to file Needs work will introduce changes to ImageUrlFormatter that will break this module's SvgImageUrlFormatter, due to the parent class introducing the $fileUrlGenerator member as well, but with a type hint.

Fortunately, there's an easy way to be compatible with the current as well as the future versions.

Proposed resolution

Add the type hint to the member in this module's formatter as well.

In a future release that supports only those versions of core containing the upstream change, remove the member in SvgImageUrlFormatter.

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany mrshowerman Munich

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