Update last minute files.

This commit is contained in:
James Cole
2020-04-10 13:50:37 +02:00
parent eed68b5d95
commit 34ceb69776
24 changed files with 155 additions and 143 deletions

View File

@@ -66,7 +66,7 @@ class FixLongDescriptions extends Command
$groups = TransactionGroup::get(['id', 'title']);
/** @var TransactionGroup $group */
foreach ($groups as $group) {
if (strlen($group->title) > self::MAX_LENGTH) {
if (strlen((string)$group->title) > self::MAX_LENGTH) {
$group->title = substr($group->title, 0, self::MAX_LENGTH);
$group->save();
$this->line(sprintf('Truncated description of transaction group #%d', $group->id));