Skip to content

Commit 29e183e

Browse files
committed
Fix context nested value for ctor args
1 parent 18e4a8d commit 29e183e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Analysers/AttributeAnnotationFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function build(\Reflector $reflector, Context $context): array
7171
foreach ($rp->getAttributes($attributeName, \ReflectionAttribute::IS_INSTANCEOF) as $attribute) {
7272
/** @var OA\Property|OA\Parameter|OA\RequestBody $instance */
7373
$instance = $attribute->newInstance();
74-
$instance->_context = new Context(['nested' => true], $context);
74+
$instance->_context = new Context(['nested' => false], $context);
7575

7676
$type = (($rnt = $rp->getType()) && $rnt instanceof \ReflectionNamedType) ? $rnt->getName() : Generator::UNDEFINED;
7777
$nullable = $rnt ? $rnt->allowsNull() : true;

0 commit comments

Comments
 (0)