False positives when identifying what is a placeholder, for deprecation error

Created on 25 September 2020, about 4 years ago
Updated 12 September 2023, over 1 year ago

Problem/Motivation

Following 📌 Switch from deprecation notice to warning for non-standard placeholders in FormattableMarkup::placeholderFormat() Fixed we now get deprecation messages at 9.1 when placeholders do not have a required prefix character. However, it seems that there are valid situations where placeholder prefixes are not required, and cases where the placeholder name has to be a specific string any prefix, such as in the $context array.

See Rules issue 📌 [10] Fix automated test results - Support for keys without a placeholder prefix is deprecated (Rules) Fixed comments #3 and #4 for more details.

Proposed resolution

Investigate whether the current criteria for determining the placeholders is too strict and produces deprecation warnings that cannot be resolved or corrected.

Remaining tasks

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Base 

Last updated about 1 hour ago

Created by

🇬🇧United Kingdom jonathan1055

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

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