File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
src/TextUI/XmlConfiguration/Migration Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 15
15
use DOMNodeList ;
16
16
use IteratorAggregate ;
17
17
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
19
22
{
20
- /** @var DOMNode[] */
23
+ /**
24
+ * @var DOMNode[]
25
+ */
21
26
private $ nodes = [];
22
27
23
- public static function fromNodeList (DOMNodeList $ list ): self
28
+ public static function fromNodeList (DOMNodeList $ list ): self
24
29
{
25
- $ snapshot = new self () ;
30
+ $ snapshot = new self ;
26
31
27
32
foreach ($ list as $ node ) {
28
33
$ snapshot ->nodes [] = $ node ;
@@ -36,7 +41,7 @@ public function count(): int
36
41
return count ($ this ->nodes );
37
42
}
38
43
39
- public function getIterator ()
44
+ public function getIterator (): ArrayIterator
40
45
{
41
46
return new ArrayIterator ($ this ->nodes );
42
47
}
You can’t perform that action at this time.
0 commit comments