From 3dc4f066cb700a1389cc7725d52d2bb07e02b4d2 Mon Sep 17 00:00:00 2001 From: Unay Santisteban Date: Sun, 17 Mar 2024 21:38:44 +1000 Subject: [PATCH] Hotfix/Change param type --- src/Traits/HasAttributes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();