Skip to content

Test suite fails in PHP 5.3.3 #93

@ruafozy

Description

@ruafozy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions