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

Method Zend\Code\Generator\ValueGenerator::__toString() must not throw an exception (with PHP 7.3) #178

Closed
@k00ni

Description

@k00ni

The class ValueGenerator may throw an exception inside __toString which is forbidden (look for Exceptions can not be thrown from __toString() methods.) and leads to a fatal error in my case. I am running a Symfony application, which indirectly uses zend-code.

Are you aware of this? I would propose moving the functionality in a separate function or not throw an exception in __toString (or referenced functions) at all.

Thank you for the feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions