Skip to content

Commit

Permalink
fix: passing class as parameter in XML ApiResource's definition (#6659)
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee authored Oct 4, 2024
1 parent 15d61c4 commit afe7d47
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Metadata/Extractor/XmlResourceExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ protected function extractPath(string $path): void
foreach ($xml->resource as $resource) {
$base = $this->buildExtendedBase($resource);
$this->resources[$this->resolve((string) $resource['class'])][] = array_merge($base, [
'class' => $this->phpize($resource, 'class', 'string'),
'operations' => $this->buildOperations($resource, $base),
'graphQlOperations' => $this->buildGraphQlOperations($resource, $base),
]);
Expand Down
2 changes: 0 additions & 2 deletions src/Metadata/Tests/Extractor/XmlExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public function testValidXML(): void
'extraProperties' => null,
'operations' => null,
'graphQlOperations' => null,
'class' => Comment::class,
'processor' => null,
'provider' => null,
'read' => null,
Expand Down Expand Up @@ -394,7 +393,6 @@ public function testValidXML(): void
],
],
'graphQlOperations' => null,
'class' => Comment::class,
'processor' => null,
'provider' => null,
'read' => null,
Expand Down

0 comments on commit afe7d47

Please sign in to comment.