Skip to content

Commit 3bd4fc5

Browse files
authored
Hotfix/Change param type (#15)
1 parent e7c1f8a commit 3bd4fc5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Traits/HasAttributes.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace ComplexHeart\Domain\Model\Traits;
66

7-
use Closure;
8-
97
use function Lambdish\Phunctional\map;
108

119
/**
@@ -34,9 +32,10 @@ final public static function attributes(): array
3432
* Return the attribute values.
3533
* Properties starting with "_" will be considered as internal use only.
3634
*
35+
* @param callable $fn
3736
* @return array<string, mixed>
3837
*/
39-
final public function values(Closure $fn = null): array
38+
final public function values(?callable $fn = null): array
4039
{
4140
$allowed = static::attributes();
4241

0 commit comments

Comments
 (0)