Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

HHVM incompatibility in Zend\Code #6418

@mnapoli

Description

@mnapoli

I get this error with HHVM 3.2:

Fatal error: Cannot override final method ReflectionMethod::toString() in .../vendor/zendframework/zend-code/Zend/Code/Reflection/MethodReflection.php on line 17

It seems the method MethodReflection::toString() is declared as final in HHVM.

However why override the method? Here is the code:

    public function toString()
    {
        return parent::__toString();
    }

    public function __toString()
    {
        return parent::__toString();
    }

I don't see the point of doing that, maybe those methods could be removed altogether, which would indirectly solve the problem?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions