Problem/Motivation

PHP 8.1, Drupal 9.3.2 returns

Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in _fontawesome_unparse_url() (line 160 of modules/contrib/fontawesome/fontawesome.module).
Command icon 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

VladimirAus created an issue. See original summary.

vladimiraus’s picture

Status: Active » Needs review
daniel.moberly’s picture

StatusFileSize
new1.1 KB

I think this is significantly simplified by just changing the parse function as attached

j-barnes’s picture

@daniel.moberly

Tested and confirmed working. I think changing the parse function is definitely the way to go.

j-barnes’s picture

Status: Needs review » Reviewed & tested by the community

  • Daniel.Moberly committed ea6cdf3 on 8.x-2.x
    Issue #3258575 by VladimirAus, Daniel.Moberly: Deprecated function:...
daniel.moberly’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed.

vladimiraus’s picture

W00t! That was quick!
Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

willabby’s picture

I encountered this issue when i updated, but i think it was related to:
https://www.drupal.org/project/drupal/issues/3267535