mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
e9ae581f02
Master only, as this depends on fixes to calling order of interface implementation handlers.
13 lines
380 B
PHP
13 lines
380 B
PHP
--TEST--
|
|
Bug #62609: Allow implementing Traversable on abstract classes (fail)
|
|
--FILE--
|
|
<?php
|
|
|
|
abstract class AbstractTraversable implements Traversable {}
|
|
|
|
class NonAbstractTraversable extends AbstractTraversable {}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Fatal error: Class NonAbstractTraversable must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
|