xref: /PHP-8.4/Zend/tests/bug60161.phpt (revision 75a678a7)
1--TEST--
2Bug #60161: Implementing an interface extending Traversable is order dependent
3--FILE--
4<?php
5
6interface Foo extends Traversable {
7}
8
9class Example implements Foo, IteratorAggregate {
10    public function getIterator(): Traversable {
11        return new ArrayIterator([]);
12    }
13}
14
15?>
16===DONE===
17--EXPECT--
18===DONE===
19