mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 01:58:00 +08:00
Update CheckboxList.php
Changes the return hint of the getDescription method in order to handle Htmlable content on a description
This commit is contained in:
@@ -306,7 +306,7 @@ class CheckboxList extends Field implements Contracts\HasNestedRecursiveValidati
|
||||
/**
|
||||
* @param array-key $value
|
||||
*/
|
||||
public function getDescription($value): ?string
|
||||
public function getDescription($value): string | Htmlable | null
|
||||
{
|
||||
return $this->getDescriptions()[$value] ?? null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user