Skip to content

Commit

Permalink
fix [Bug] mb_strwidth(): Passing null to parameter #1 ($string) of ty…
Browse files Browse the repository at this point in the history
…pe string is deprecated #4492
  • Loading branch information
Polfo committed Jul 4, 2022
1 parent 248e2e0 commit d849e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/views/crud/columns/text.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$column['limit'] = $column['limit'] ?? 40;
$column['prefix'] = $column['prefix'] ?? '';
$column['suffix'] = $column['suffix'] ?? '';
$column['text'] = $column['prefix'].Str::limit($value, $column['limit'], '[...]').$column['suffix'];
$column['text'] = $column['prefix'].Str::limit($value ?? '', $column['limit'], '[...]').$column['suffix'];
@endphp

<span>
Expand Down

0 comments on commit d849e4a

Please sign in to comment.