Skip to content
Snippets Groups Projects

Issue #3335176: explode(): Passing null to parameter #2 ($string) of type string is deprecated in pwa_str_to_list

Closed Issue #3335176: explode(): Passing null to parameter #2 ($string) of type string is deprecated in pwa_str_to_list
Closed Pratik requested to merge issue/pwa-3335176:8.x-1.x into 8.x-1.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -76,7 +76,7 @@ function pwa_theme() {
* Check data from input.
*/
function pwa_str_to_list($string) {
$list = explode("\n", $string);
$list = explode("\n", $string ?? '');
$list = array_map('trim', $list);
return array_filter($list, 'strlen');
}
Loading