Skip to content

Commit

Permalink
v2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Savluk committed Sep 29, 2023
1 parent d99a715 commit b6a296a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Support/Mapping/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b6a296a

Please sign in to comment.