<?php
abstract class A implements Traversable
{
}
class B extends A implements IteratorAggregate
{
public function getIterator()
{
return ArrayIterator(array());
}
}
Deprecated: Return type of B::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/ikUmU on line 9
Fatal error: Class A must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/ikUmU on line 3
Process exited with code 255.