diff --git a/src/Metadata/Extractor/XmlResourceExtractor.php b/src/Metadata/Extractor/XmlResourceExtractor.php index b726ac03e68..6ebc1a66bf8 100644 --- a/src/Metadata/Extractor/XmlResourceExtractor.php +++ b/src/Metadata/Extractor/XmlResourceExtractor.php @@ -202,7 +202,7 @@ private function buildOpenapi(\SimpleXMLElement $resource): bool|OpenApiOperatio $data[$attributeName] = $this->phpize($attributes, $attributeName, 'deprecated' === $attributeName ? 'bool' : 'string'); } - $data['tags'] = $this->buildArrayValue($resource, 'tag'); + $data['tags'] = $this->buildArrayValue($openapi, 'tag'); if (isset($openapi->responses->response)) { foreach ($openapi->responses->response as $response) {