diff --git a/phpstan.neon.dist b/phpstan.neon.dist index ca9f7af..0aca2b7 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -13,9 +13,6 @@ parameters: - message: '~^Variable property access on ~' path: src/Step.php - - - message: '~^Dynamic call to static method XMLReader::open\(\)\.~' - path: src/Extractors\Xml.php - message: '~Variable method call on Wizaplace\\Etl\\Step\.~' path: tests/Tools/AbstractTestCase.php diff --git a/src/Extractors/Xml.php b/src/Extractors/Xml.php index 881d144..4584d4f 100644 --- a/src/Extractors/Xml.php +++ b/src/Extractors/Xml.php @@ -58,9 +58,7 @@ public function extract(): \Generator $value = $this->loop . $value; } - $this->reader = new \XMLReader(); - - $this->reader->open($this->input); + $this->reader = \XMLReader::open($this->input); while ($this->reader->read()) { $this->addElementToPath();