When I run the PHPUnit test suite using PHP 5.3.3, I get the
following error message:
Fatal error: Can't inherit abstract function Icecave\Chrono\CommonInterface::timeZone() (previously declared abstract in Icecave\Chrono\TimePointInterface) in /tmp/chrono/src/TimePointInterface.php on line 14
When I run the PHPUnit test suite using PHP 5.3.29, it
passes.
I'm using the HEAD of the develop branch, namely
e963890.
The likely explanation for the problem is the following, quoted
from http://php.net/manual/en/language.oop5.interfaces.php:
Prior to PHP 5.3.9, a class could not implement two
interfaces that specified a method with the same name, since
it would cause ambiguity. More recent versions of PHP allow
this as long as the duplicate methods have the same
signature.
When I run the PHPUnit test suite using PHP 5.3.3, I get the
following error message:
When I run the PHPUnit test suite using PHP 5.3.29, it
passes.
I'm using the HEAD of the
developbranch, namelye963890.
The likely explanation for the problem is the following, quoted
from http://php.net/manual/en/language.oop5.interfaces.php: