From b6a296af3997d13c0f48ba755ee49ec17a34ad59 Mon Sep 17 00:00:00 2001 From: Andrii Savluk Date: Fri, 29 Sep 2023 17:13:28 +0300 Subject: [PATCH] v2.0.2 --- src/Support/Mapping/Schema.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Support/Mapping/Schema.php b/src/Support/Mapping/Schema.php index 5c38d1e..bc8e1a2 100644 --- a/src/Support/Mapping/Schema.php +++ b/src/Support/Mapping/Schema.php @@ -74,8 +74,10 @@ public static function constNumber(int|float $value, bool $asAnyNumber = false): return new ConstNumberCast($value, $asAnyNumber); } - public static function anyObject(string|Closure|null $accessor = null, array|object|null $default = null): AnyObjectCast - { + public static function anyObject( + string|Closure|null $accessor = null, + array|object|null $default = null + ): AnyObjectCast { return new AnyObjectCast($accessor, $default); } @@ -107,11 +109,6 @@ public static function any(string|Closure|null $accessor = null, mixed $default return new AnyCast($accessor, $default); } - public static function spread(Closure $callback, string|Closure|null $accessor = null): Spread - { - return new Spread($callback, $accessor); - } - public static function intersection(Cast|Mapper ...$objects): IntersectionCast { return new IntersectionCast(...$objects);