Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Utils/AttributeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,10 @@ protected function mergeIntoSibling(array $attributes, int $index, array &$merge
if ($candidate instanceof $targetClass) {
if ($matchingTarget instanceof AttributeInterface) {
throw OpenApiException::fromSource(
sprintf('Ambiguous merge: %s matches multiple siblings on the same target', $attribute::class),
sprintf(
'Ambiguous merge: %s matches multiple siblings on the same target. Nest it explicitly in the one it belongs to, or give it a `component` and reference it from each.',
$attribute::class
),
$attribute->getSourceLocation(),
);
}
Expand Down
Loading