Update packages/forms/src/Components/CheckboxList.php

This commit is contained in:
Dan Harrin
2024-05-24 12:00:48 +01:00
committed by GitHub
parent 9ffebbeaf6
commit 1d8fa39416
@@ -251,7 +251,7 @@ class CheckboxList extends Field implements Contracts\CanDisableOptions, Contrac
return $this->getOptionLabelFromRecordUsing !== null;
}
public function getOptionLabelFromRecord(Model $record): Htmlable
public function getOptionLabelFromRecord(Model $record): string | Htmlable
{
return $this->evaluate(
$this->getOptionLabelFromRecordUsing,