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
_filter_url_trim() can cause deprecations on PHP 8.1 because it passes NULL to \Drupal\Component\Utility\Unicode::truncate()
Steps to reproduce
Run Drupal\Tests\comment\Kernel\CommentDefaultFormatterCacheTags on PHP 8.1
Proposed resolution
The way _filter_url_trim()
works with the statics is pretty horrible.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#4 | 3240228-4.patch | 441 bytes | alexpott |
#2 | 3240228-2.patch | 939 bytes | alexpott |
Comments
Comment #2
alexpottHere's the simplest fix from the meta. There has to be a better way.
Comment #3
alexpottI think though that the better way would involve a complete rewrite of all the _filter_* functions so not gonna happen here.
Comment #4
alexpottRemove unrelated change.
Comment #5
daffie CreditAttribution: daffie commentedLooks good to me.
Comment #6
catchOof, but also yeah needs completely revising to do better than this.
Committed b7df0ea and pushed to 9.3.x. Thanks!