- Issue created by @mstrelan
- Merge request !6035Convert FormattableMarkup to strings (complex replacement) in core Functional tests → (Closed) created by mstrelan
- Status changed to Needs review
12 months ago 6:04am 5 January 2024 - 🇦🇺Australia mstrelan
Think this should cover everything not in 📌 Fix strict type errors: Convert FormattableMarkup to strings (simple replacement) in core Functional tests RTBC .
To be honest I don't really know when to use string concatenation, string interpolation or sprintf. Most of the time it doesn't seem worth it to add new variables. I've done what seems reasonable to me. The goal is to add the strict_types declaration and I don't think there's much point debating how to format these.
- Status changed to RTBC
12 months ago 2:55pm 5 January 2024 - 🇺🇸United States smustgrave
For the goal of getting strict_type added these seem fine.
I also don't know when to use what, and not sure it should be enforced till there is a rule that can be followed. Till then seems to be each person's personal preference, just my observation.
- Status changed to Needs work
11 months ago 4:59pm 13 January 2024 The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Needs review
11 months ago 1:34am 15 January 2024 - Status changed to RTBC
11 months ago 2:31pm 17 January 2024 - 🇺🇸United States smustgrave
Doesn't seem to break anything and still appears to give same strings.
Still fuzzy on when sprintf, formattableMarkup, or double-quotes strings should be used.
- Assigned to quietone
- 🇳🇿New Zealand quietone
I read through the MR and didn't have any questions. I randomly selected a few to test by forcing the error so the message would display. And like @smustgrave, I do see that the changes sometimes uses sprintf and sometimes do not. But that is also personal style and the best fit for the use case. I think this is good to commit and will assign to myself to commit tomorrow.
-
quietone →
committed 503192fc on 11.x
Issue #3412464 by mstrelan, smustgrave: Fix strict type errors: Convert...
-
quietone →
committed 503192fc on 11.x
- Issue was unassigned.
- Status changed to Fixed
11 months ago 11:50pm 29 January 2024 - Status changed to RTBC
11 months ago 1:32am 30 January 2024 - 🇦🇺Australia mstrelan
Created a new branch from 10.2.x and cherry-picked the same commits. Setting RTBC as it's the same as was committed to 11.x, but let me know if this needs to go to NR first.
-
quietone →
committed 362a5f61 on 10.2.x
Issue #3412464 by mstrelan, smustgrave, quietone: Fix strict type errors...
-
quietone →
committed 362a5f61 on 10.2.x
- Status changed to Fixed
11 months ago 7:21am 2 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.