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

Created on 25 September 2020, almost 4 years ago
Updated 12 September 2023, 10 months 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 6 hours 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.69.0 2024