Skip to content

Commit 5b26497

Browse files
committed
fix: phpstan XmReader::open()
1 parent 5ad0a91 commit 5b26497

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ parameters:
1313
-
1414
message: '~^Variable property access on ~'
1515
path: src/Step.php
16-
-
17-
message: '~^Dynamic call to static method XMLReader::open\(\)\.~'
18-
path: src/Extractors\Xml.php
1916
-
2017
message: '~Variable method call on Wizaplace\\Etl\\Step\.~'
2118
path: tests/Tools/AbstractTestCase.php

src/Extractors/Xml.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ public function extract(): \Generator
5858
$value = $this->loop . $value;
5959
}
6060

61-
$this->reader = new \XMLReader();
62-
63-
$this->reader->open($this->input);
61+
$this->reader = \XMLReader::open($this->input);
6462

6563
while ($this->reader->read()) {
6664
$this->addElementToPath();

0 commit comments

Comments
 (0)