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