We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7c1f8a commit 3bd4fc5Copy full SHA for 3bd4fc5
src/Traits/HasAttributes.php
@@ -4,8 +4,6 @@
4
5
namespace ComplexHeart\Domain\Model\Traits;
6
7
-use Closure;
8
-
9
use function Lambdish\Phunctional\map;
10
11
/**
@@ -34,9 +32,10 @@ final public static function attributes(): array
34
32
* Return the attribute values.
35
33
* Properties starting with "_" will be considered as internal use only.
36
*
+ * @param callable $fn
37
* @return array<string, mixed>
38
*/
39
- final public function values(Closure $fn = null): array
+ final public function values(?callable $fn = null): array
40
{
41
$allowed = static::attributes();
42
0 commit comments