diff --git a/src/Traits/HasAttributes.php b/src/Traits/HasAttributes.php index cdaeef2..9c14ac1 100644 --- a/src/Traits/HasAttributes.php +++ b/src/Traits/HasAttributes.php @@ -4,8 +4,6 @@ namespace ComplexHeart\Domain\Model\Traits; -use Closure; - use function Lambdish\Phunctional\map; /** @@ -34,9 +32,10 @@ final public static function attributes(): array * Return the attribute values. * Properties starting with "_" will be considered as internal use only. * + * @param callable $fn * @return array */ - final public function values(Closure $fn = null): array + final public function values(?callable $fn = null): array { $allowed = static::attributes();