Skip to content

Commit

Permalink
fix: phpstan XmReader::open()
Browse files Browse the repository at this point in the history
  • Loading branch information
leNEKO committed Sep 8, 2023
1 parent 5ad0a91 commit 5b26497
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions src/Extractors/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5b26497

Please sign in to comment.