From c0fb1ad751f40f30c7c56540f16c2b7d56f3ae4f Mon Sep 17 00:00:00 2001 From: Edwin Heij Date: Tue, 26 Mar 2024 12:47:06 +0100 Subject: [PATCH] Prevent deprecate message (#1476) preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated --- resources/views/components/row.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/components/row.blade.php b/resources/views/components/row.blade.php index bf9aebe5..000cc696 100644 --- a/resources/views/components/row.blade.php +++ b/resources/views/components/row.blade.php @@ -28,7 +28,7 @@ @foreach ($columns as $column) @php - $content = $row->{$column->field} ?? null; + $content = $row->{$column->field} ?? ''; $contentClassField = $column->contentClassField != '' ? $row->{$column->contentClassField} : ''; $content = preg_replace('#(.*?)#is', '', $content); $field = $column->dataField != '' ? $column->dataField : $column->field;