Diff should typehint DateFormatter interface rather than a specific implementation

Created on 4 October 2022, over 1 year ago
Updated 25 April 2024, 2 months ago

Problem/Motivation

Various classes typehint the injected date.formatter service with the default implementation rather than the interface.This leads to problem like when modules try to decorate or override the service.

Steps to reproduce

Decorate or replace date.formatter with a different class.

Proposed resolution

Typehint constructor with interface, not concrete implementation.

User interface changes

Nil

API changes

Nil

Data model changes

Nil

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

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.69.0 2024