From dff99df9e1610080a3ed4b5f30243551e759fabd Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Wed, 21 Aug 2024 14:09:00 +0200 Subject: [PATCH] Get rid of unused xpath functions --- src/Xml/Configurator/FlattenXsdImports.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Xml/Configurator/FlattenXsdImports.php b/src/Xml/Configurator/FlattenXsdImports.php index ee371d0..05d5c56 100644 --- a/src/Xml/Configurator/FlattenXsdImports.php +++ b/src/Xml/Configurator/FlattenXsdImports.php @@ -24,7 +24,6 @@ use function VeeWee\Xml\Dom\Manipulator\Element\copy_named_xmlns_attributes; use function VeeWee\Xml\Dom\Manipulator\Node\append_external_node; use function VeeWee\Xml\Dom\Manipulator\Node\remove; -use function VeeWee\Xml\Dom\Xpath\Configurator\functions; /** * This class deals with xsd:import, xsd:include and xsd:redefine tags. @@ -240,7 +239,7 @@ private function fixRemovedDefaultXmlnsDeclarationsDuringImport(DOMElement $targ */ private function rearrangeImportsAsFirstElements(Document $xml): void { - $xpath = $xml->xpath(new WsdlPreset($xml), functions(['array_reverse'])); + $xpath = $xml->xpath(new WsdlPreset($xml)); $imports = $xpath ->query('//schema:import') ->expectAllOfType(DOMElement::class);