We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df55555 commit 79eeca7Copy full SHA for 79eeca7
1 file changed
src/Analysers/AttributeAnnotationFactory.php
@@ -59,6 +59,7 @@ public function build(\Reflector $reflector, Context $context): array
59
foreach ($rp->getAttributes($attributeName, \ReflectionAttribute::IS_INSTANCEOF) as $attribute) {
60
/** @var OA\Property|OA\Parameter|OA\RequestBody $instance */
61
$instance = $attribute->newInstance();
62
+ $instance->_context = new Context(['nested' => true], $context);
63
64
$type = (($rnt = $rp->getType()) && $rnt instanceof \ReflectionNamedType) ? $rnt->getName() : Generator::UNDEFINED;
65
$nullable = $rnt ? $rnt->allowsNull() : true;
0 commit comments