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:
Nessim Abadi
2023-08-31 10:25:34 -05:00
committed by GitHub
parent baf1cb6962
commit 9c16bf6b75
@@ -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;
}