Skip to content

Commit 232cb85

Browse files
Fix CS/WS issues
1 parent cf13570 commit 232cb85

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/TextUI/XmlConfiguration/Migration/SnapshotNodeList.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@
1515
use DOMNodeList;
1616
use IteratorAggregate;
1717

18-
class SnapshotNodeList implements Countable, IteratorAggregate
18+
/**
19+
* @internal This class is not covered by the backward compatibility promise for PHPUnit
20+
*/
21+
final class SnapshotNodeList implements Countable, IteratorAggregate
1922
{
20-
/** @var DOMNode[] */
23+
/**
24+
* @var DOMNode[]
25+
*/
2126
private $nodes = [];
2227

23-
public static function fromNodeList(DOMNodeList $list): self
28+
public static function fromNodeList(DOMNodeList $list): self
2429
{
25-
$snapshot = new self();
30+
$snapshot = new self;
2631

2732
foreach ($list as $node) {
2833
$snapshot->nodes[] = $node;
@@ -36,7 +41,7 @@ public function count(): int
3641
return count($this->nodes);
3742
}
3843

39-
public function getIterator()
44+
public function getIterator(): ArrayIterator
4045
{
4146
return new ArrayIterator($this->nodes);
4247
}

0 commit comments

Comments
 (0)