mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
19 lines
312 B
Plaintext
19 lines
312 B
Plaintext
|
--TEST--
|
||
|
Bug #60161: Implementing an interface extending Traversable is order dependent
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
interface Foo extends Traversable {
|
||
|
}
|
||
|
|
||
|
class Example implements Foo, IteratorAggregate {
|
||
|
public function getIterator() {
|
||
|
return new ArrayIterator([]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
===DONE===
|