Problem/Motivation
Several functions are documented as accepting a string parameter, but implicitly cast the input to string. Often, this is the desired behavior. In particular, some of these functions are routinely passed objects of type Drupal\Core\Render\Markup.
The document blocks of these functions should be updated to indicate that they accept non-string arguments.
At least handle the following functions, as discussed in #2837013: clean_class Twig filter does not work with Views rewriting:
Proposed resolution
Update the doc blocks of the listed functions.
Remaining tasks
User interface changes
None
API changes
There are no functional changes to the API, just to how it is documented.
Data model changes
None
Comments
Comment #14
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #16
smustgrave commentedSince we've started to typehint things is this still needed?