Skip to content

Commit

Permalink
just give addtional data if you dont want to override title and statu…
Browse files Browse the repository at this point in the history
…s retrieval
  • Loading branch information
mokhosh committed Dec 2, 2023
1 parent 37a41a1 commit fc64bb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Pages/KanbanBoard.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ protected function transformRecords(Model $record): Collection
'status' => $record->{static::$recordStatusAttribute} instanceof UnitEnum ?
$record->{static::$recordStatusAttribute}->value :

Check failure on line 58 in src/Pages/KanbanBoard.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to an undefined property UnitEnum::$value.

Check failure on line 58 in src/Pages/KanbanBoard.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to an undefined property UnitEnum::$value.
$record->{static::$recordStatusAttribute},
]);
])->merge($this->additionalRecordData($record));
}

protected function additionalRecordData(Model $record): Collection
{
return collect([]);
}
}

0 comments on commit fc64bb4

Please sign in to comment.