Dont add hints for internal attributes. Our hints now also returns a collection.

This commit is contained in:
2025-04-08 11:04:31 +10:00
parent 66537dcec8
commit 6b2fb8dee4
2 changed files with 9 additions and 6 deletions

View File

@@ -226,12 +226,15 @@ class Attribute implements \Countable, \ArrayAccess
/**
* Return the hints about this attribute, ie: RDN, Required, etc
*
* @return array
* @return Collection
*/
public function hints(): array
public function hints(): Collection
{
$result = collect();
if ($this->is_internal)
return $result;
// Is this Attribute an RDN
if ($this->is_rdn)
$result->put(__('rdn'),__('This attribute is required for the RDN'));
@@ -246,7 +249,7 @@ class Attribute implements \Countable, \ArrayAccess
if ($this->isDynamic())
$result->put(__('dynamic'),__('These are dynamic values present as a result of another attribute'));
return $result->toArray();
return $result;
}
/**