Problem/Motivation
trim(): Passing null to parameter #1 ($string) of type string is deprecated in block_list_override_block_alter()
Steps to reproduce
Module version 1.0.2, trying to add Block gives Error: trim(): Passing null to parameter #1 ($string) of type string is deprecated in block_list_override_block_alter()
Proposed resolution
It needs to add check while passing parameter to trim(), if null - pass ''.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | block_list-override-3387760-1.patch | 844 bytes | yugro |
Issue fork block_list_override-3387760
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:
- 1.0.x
changes, plain diff MR !7
- 3387760-1
changes, plain diff MR !6
- 3387760-trim-passing-null
changes, plain diff MR !5
Comments
Comment #2
yugro commentedThere is still no check for a parameter passing to trim inside function block_list_override_plugin_filter_block__layout_builder_alter() of block_list_override.module
Comment #4
yugro commentedComment #9
thhafner commentedPatch works as expected for me.
Comment #12
heddnThanks for the contributions