Skip to content

Commit afe7d47

Browse files
authored
fix: passing class as parameter in XML ApiResource's definition (#6659)
1 parent 15d61c4 commit afe7d47

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Metadata/Extractor/XmlResourceExtractor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ protected function extractPath(string $path): void
6161
foreach ($xml->resource as $resource) {
6262
$base = $this->buildExtendedBase($resource);
6363
$this->resources[$this->resolve((string) $resource['class'])][] = array_merge($base, [
64-
'class' => $this->phpize($resource, 'class', 'string'),
6564
'operations' => $this->buildOperations($resource, $base),
6665
'graphQlOperations' => $this->buildGraphQlOperations($resource, $base),
6766
]);

src/Metadata/Tests/Extractor/XmlExtractorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public function testValidXML(): void
9595
'extraProperties' => null,
9696
'operations' => null,
9797
'graphQlOperations' => null,
98-
'class' => Comment::class,
9998
'processor' => null,
10099
'provider' => null,
101100
'read' => null,
@@ -394,7 +393,6 @@ public function testValidXML(): void
394393
],
395394
],
396395
'graphQlOperations' => null,
397-
'class' => Comment::class,
398396
'processor' => null,
399397
'provider' => null,
400398
'read' => null,

0 commit comments

Comments
 (0)