This commit is contained in:
icefox 2026-02-27 11:17:21 -03:00
parent 30706c3521
commit 71d49def6b
No known key found for this signature in database

View file

@ -85,11 +85,7 @@ class DataObjectFactory
$namedType = $reflectionType instanceof ReflectionNamedType ? $reflectionType->getName() : null;
$annotatedType = $parameter->tag?->getType();
$isListType
= $parameter->reflection->isArray()
|| in_array($namedType, config('dto.listTypes', []))
|| in_array($annotatedType?->__toString(), config('dto.listTypes', []))
|| $annotatedType instanceof AbstractList;
$isListType = ReflectionHelper::isListType($parameter);
foreach ($parameter->reflection->getAttributes(FromInput::class) as $attr) {
if ($value = $rawInput[$attr->newInstance()->name] ?? null) {