mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
8c8f8c4193
This has been fixed in PHP 7.4, let's make sure it stays fixed.
19 lines
312 B
PHP
19 lines
312 B
PHP
--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===
|