Skip to content

Commit

Permalink
php 8 deprecation string in trim fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Jan 4, 2024
1 parent a20f236 commit 16dae88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generators/crud/default/views/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 16dae88

Please sign in to comment.