2121trait Descriptors
2222{
2323 /**
24- * @param null|string|Closure(T):bool $attribute
24+ * @param null|string|Closure(T):mixed $attribute
2525 *
2626 * @return \Ark4ne\JsonApi\Descriptors\Values\ValueBool<T>
2727 */
@@ -31,7 +31,7 @@ protected function bool(null|string|Closure $attribute = null): ValueBool
3131 }
3232
3333 /**
34- * @param null|string|Closure(T):int $attribute
34+ * @param null|string|Closure(T):mixed $attribute
3535 *
3636 * @return \Ark4ne\JsonApi\Descriptors\Values\ValueInteger<T>
3737 */
@@ -41,7 +41,7 @@ protected function integer(null|string|Closure $attribute = null): ValueInteger
4141 }
4242
4343 /**
44- * @param null|string|Closure(T):float $attribute
44+ * @param null|string|Closure(T):mixed $attribute
4545 *
4646 * @return \Ark4ne\JsonApi\Descriptors\Values\ValueFloat<T>
4747 */
@@ -51,7 +51,7 @@ public function float(null|string|Closure $attribute = null): ValueFloat
5151 }
5252
5353 /**
54- * @param null|string|Closure(T):string $attribute
54+ * @param null|string|Closure(T):mixed $attribute
5555 *
5656 * @return \Ark4ne\JsonApi\Descriptors\Values\ValueString<T>
5757 */
@@ -61,7 +61,7 @@ protected function string(null|string|Closure $attribute = null): ValueString
6161 }
6262
6363 /**
64- * @param null|string|Closure(T):\DateTimeInterface $attribute
64+ * @param null|string|Closure(T):( \DateTimeInterface|string|int|null) $attribute
6565 *
6666 * @return \Ark4ne\JsonApi\Descriptors\Values\ValueDate<T>
6767 */
@@ -71,7 +71,7 @@ protected function date(null|string|Closure $attribute = null): ValueDate
7171 }
7272
7373 /**
74- * @param null|string|Closure(T):array<mixed> $attribute
74+ * @param null|string|Closure(T):( array<mixed>|null) $attribute
7575 *
7676 * @return \Ark4ne\JsonApi\Descriptors\Values\ValueArray<T>
7777 */
@@ -81,7 +81,7 @@ protected function array(null|string|Closure $attribute = null): ValueArray
8181 }
8282
8383 /**
84- * @param null|string|Closure(T):object $attribute
84+ * @param null|string|Closure(T):( object|null) $attribute
8585 *
8686 * @return \Ark4ne\JsonApi\Descriptors\Values\ValueMixed<T>
8787 */
0 commit comments