abstract
This commit is contained in:
parent
30706c3521
commit
71d49def6b
1 changed files with 1 additions and 5 deletions
|
|
@ -85,11 +85,7 @@ class DataObjectFactory
|
||||||
$namedType = $reflectionType instanceof ReflectionNamedType ? $reflectionType->getName() : null;
|
$namedType = $reflectionType instanceof ReflectionNamedType ? $reflectionType->getName() : null;
|
||||||
$annotatedType = $parameter->tag?->getType();
|
$annotatedType = $parameter->tag?->getType();
|
||||||
|
|
||||||
$isListType
|
$isListType = ReflectionHelper::isListType($parameter);
|
||||||
= $parameter->reflection->isArray()
|
|
||||||
|| in_array($namedType, config('dto.listTypes', []))
|
|
||||||
|| in_array($annotatedType?->__toString(), config('dto.listTypes', []))
|
|
||||||
|| $annotatedType instanceof AbstractList;
|
|
||||||
|
|
||||||
foreach ($parameter->reflection->getAttributes(FromInput::class) as $attr) {
|
foreach ($parameter->reflection->getAttributes(FromInput::class) as $attr) {
|
||||||
if ($value = $rawInput[$attr->newInstance()->name] ?? null) {
|
if ($value = $rawInput[$attr->newInstance()->name] ?? null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue