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
If NULL is passed to _name_format_add_component(), it will eventually make its way to strlen(), which raises a deprecation message in PHP 8.0. The first conditional in _name_format_apply_modifiers() appears to be written incorrectly.
Proposed resolution
In _name_format_apply_modifiers(), only operate on values that are non-empty strings.
Issue fork name-3253598
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
Liam MorlandComment #5
Liam Morland