Problem/Motivation

PHP 8.1 with Drupal 9.4.3 gives

Deprecated function: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated.

Issue fork bootstrap-3300658

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

tanmayk created an issue. See original summary.

tanmayk’s picture

StatusFileSize
new928 bytes

Here is patch against 3.x.

tanmayk’s picture

Status: Active » Needs review
shyam_bhatt’s picture

Assigned: Unassigned » shyam_bhatt
shyam_bhatt’s picture

Assigned: shyam_bhatt » Unassigned
Status: Needs review » Reviewed & tested by the community

Before adding the patch, I can see the warning for the "Deprecated function: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated" once I try to add a favicon.
The patch is working fine with PHP 8.1 with Drupal 9.4.x configuration for this theme.
after-patch-3300658

shyam_bhatt’s picture

shyam_bhatt’s picture

StatusFileSize
new79.64 KB

shelane made their first commit to this issue’s fork.

  • shelane committed cb46312 on 8.x-3.x
    Issue #3300658 by shelane, tanmayk, Shyam_Bhatt: Deprecated function:...
shelane’s picture

Status: Reviewed & tested by the community » Fixed
shyam_bhatt’s picture

Status: Fixed » Closed (fixed)

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