@@ -162,7 +162,7 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * Transforms an xml dom to an array. |
| 164 | 164 | * |
| 165 | - * @param DomElement $node |
|
| 165 | + * @param DOMElement $node |
|
| 166 | 166 | * @param nodes relative root reference $nodes |
| 167 | 167 | */ |
| 168 | 168 | private function toArray(DomElement $node, array &$nodes = []) : array |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use ApiPlatform\Core\Exception\ResourceClassNotFoundException; |
| 16 | 16 | use ApiPlatform\Core\Metadata\Resource\ResourceMetadata; |
| 17 | 17 | use DOMDocument; |
| 18 | -use DOMElement; |
|
| 19 | 18 | use DOMXpath; |
| 20 | 19 | |
| 21 | 20 | /** |
@@ -153,11 +153,11 @@ |
||
| 153 | 153 | $paths = array_merge($paths, glob($glob, GLOB_BRACE | GLOB_NOSORT)); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | - $yamlPaths = array_filter($paths, function ($v) { |
|
| 156 | + $yamlPaths = array_filter($paths, function($v) { |
|
| 157 | 157 | return preg_match('/\.yml$/', $v); |
| 158 | 158 | }); |
| 159 | 159 | |
| 160 | - $xmlPaths = array_filter($paths, function ($v) { |
|
| 160 | + $xmlPaths = array_filter($paths, function($v) { |
|
| 161 | 161 | return preg_match('/\.xml$/', $v); |
| 162 | 162 | }); |
| 163 | 163 | |