Problem/Motivation
PHP8.1 gives warning Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\broken_link\EventSubscriber\BrokenLinkSubscriber->handleBrokenLink() (line 48 of /var/web/vd16344/app/releases/117/web/modules/contrib/broken_link/src/EventSubscriber/BrokenLinkSubscriber.php)
Steps to reproduce
Random error.
Proposed resolution
Passing NULL to trim() or ltrim() or rtrim() is not allowed anymore in PHP 8.1. The code even explicitly checks for NULL (and not just an empty string)
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | broken_link-trim-3295888-2.patch | 1.2 KB | monymirza |
Issue fork broken_link-3295888
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 #2
monymirzaComment #3
atul_ghate commentedi will review this patch
Comment #4
atul_ghate commentedHi,
Patch is wroking fine ,changing its status to RTBC.