Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Traits/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace ComplexHeart\Domain\Model\Traits;

use Closure;

use function Lambdish\Phunctional\map;

/**
Expand Down Expand Up @@ -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<string, mixed>
*/
final public function values(Closure $fn = null): array
final public function values(?callable $fn = null): array
{
$allowed = static::attributes();

Expand Down