Problem/Motivation
I get this error message under conditions
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\render_profiler\RenderProfilerLogger::build_truncated_string()
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3379944-3.patch | 480 bytes | keshavv |
| #2 | 3379944-deprecation-error-message.patch | 461 bytes | miiimooo |
Comments
Comment #2
miiimoooAttached find a minimal patch
Comment #3
keshavv commentedI think also need to add
!empty()check to check the null value.Comment #5
les limThanks! I've opted instead to prevent the function from being invoked for empty values.