21
21
trait Descriptors
22
22
{
23
23
/**
24
- * @param null|string|Closure(T):bool $attribute
24
+ * @param null|string|Closure(T):mixed $attribute
25
25
*
26
26
* @return \Ark4ne\JsonApi\Descriptors\Values\ValueBool<T>
27
27
*/
@@ -31,7 +31,7 @@ protected function bool(null|string|Closure $attribute = null): ValueBool
31
31
}
32
32
33
33
/**
34
- * @param null|string|Closure(T):int $attribute
34
+ * @param null|string|Closure(T):mixed $attribute
35
35
*
36
36
* @return \Ark4ne\JsonApi\Descriptors\Values\ValueInteger<T>
37
37
*/
@@ -41,7 +41,7 @@ protected function integer(null|string|Closure $attribute = null): ValueInteger
41
41
}
42
42
43
43
/**
44
- * @param null|string|Closure(T):float $attribute
44
+ * @param null|string|Closure(T):mixed $attribute
45
45
*
46
46
* @return \Ark4ne\JsonApi\Descriptors\Values\ValueFloat<T>
47
47
*/
@@ -51,7 +51,7 @@ public function float(null|string|Closure $attribute = null): ValueFloat
51
51
}
52
52
53
53
/**
54
- * @param null|string|Closure(T):string $attribute
54
+ * @param null|string|Closure(T):mixed $attribute
55
55
*
56
56
* @return \Ark4ne\JsonApi\Descriptors\Values\ValueString<T>
57
57
*/
@@ -61,7 +61,7 @@ protected function string(null|string|Closure $attribute = null): ValueString
61
61
}
62
62
63
63
/**
64
- * @param null|string|Closure(T):\DateTimeInterface $attribute
64
+ * @param null|string|Closure(T):( \DateTimeInterface|string|int|null) $attribute
65
65
*
66
66
* @return \Ark4ne\JsonApi\Descriptors\Values\ValueDate<T>
67
67
*/
@@ -71,7 +71,7 @@ protected function date(null|string|Closure $attribute = null): ValueDate
71
71
}
72
72
73
73
/**
74
- * @param null|string|Closure(T):array<mixed> $attribute
74
+ * @param null|string|Closure(T):( array<mixed>|null) $attribute
75
75
*
76
76
* @return \Ark4ne\JsonApi\Descriptors\Values\ValueArray<T>
77
77
*/
@@ -81,7 +81,7 @@ protected function array(null|string|Closure $attribute = null): ValueArray
81
81
}
82
82
83
83
/**
84
- * @param null|string|Closure(T):object $attribute
84
+ * @param null|string|Closure(T):( object|null) $attribute
85
85
*
86
86
* @return \Ark4ne\JsonApi\Descriptors\Values\ValueMixed<T>
87
87
*/
0 commit comments