From 16dae88d92ae1a22178abd36ebf87cde4a44a2fe Mon Sep 17 00:00:00 2001 From: Elias Luhr Date: Thu, 4 Jan 2024 16:22:26 +0100 Subject: [PATCH] php 8 deprecation string in trim fix --- src/generators/crud/default/views/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generators/crud/default/views/index.php b/src/generators/crud/default/views/index.php index 0153057..659640c 100644 --- a/src/generators/crud/default/views/index.php +++ b/src/generators/crud/default/views/index.php @@ -231,8 +231,8 @@ foreach ($safeAttributes as $attribute) { - $format = trim($generator->columnFormat($attribute, $model)); - if ($format == false) { + $format = trim((string)$generator->columnFormat($attribute, $model)); + if (empty($format)) { continue; } if (++$count <= $generator->gridMaxColumns) {