include missing
This commit is contained in:
parent
88b5850c32
commit
d3e12785bb
20 changed files with 584 additions and 4 deletions
|
|
@ -8,6 +8,7 @@ use Icefox\DTO\Attributes\FromInput;
|
|||
use Icefox\DTO\Attributes\FromMapper;
|
||||
use Icefox\DTO\Attributes\FromRouteParameter;
|
||||
use Icefox\DTO\Support\RuleFactory;
|
||||
use Icefox\DTO\Support\ValueFactory;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
|
@ -39,7 +40,7 @@ trait DataObject
|
|||
}
|
||||
|
||||
/**
|
||||
* @param array<int,mixed> $input
|
||||
* @param array<string,mixed> $input
|
||||
*/
|
||||
public static function fromArray(array $input): static
|
||||
{
|
||||
|
|
@ -86,7 +87,7 @@ trait DataObject
|
|||
continue;
|
||||
}
|
||||
|
||||
$mappedInput[$parameterName] = RuleFactory::resolveValue(
|
||||
$mappedInput[$parameterName] = ValueFactory::resolveValue(
|
||||
$validator->getValue($parameterName),
|
||||
$parameter->tag instanceof Param ? $parameter->tag->getType() : null,
|
||||
$parameter->reflection,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue