Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
\Drupal\Component\Utility\Unicode::caseFlip() is not used or tested in core. It is also not used in contrib http://grep.xnddx.ru/search?text=caseFlip&filename=
It was used internally by PHP5 versions of the multistring method which are no longer needed.
Proposed resolution
Deprecate the method with no replacement.
Remaining tasks
Create change record and deprecate the method.
User interface changes
None
API changes
Unicode::caseFlip() is deprecated
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3057321-2.patch | 1.94 KB | alexpott |
Comments
Comment #2
alexpottComment #3
John Cook CreditAttribution: John Cook at Creode commentedThe patch applies cleanly, adding the depreciation message to the docblock and setting an error message if the function is used when testing code.
The function is not used either in core or any contributed module that we can find.
Setting to RTBC.
Comment #4
catchCommitted 79f8c0a and pushed to 8.8.x. Thanks!
Comment #7
Krzysztof DomańskiPublished CR.