Skip to content

FlattenException does not work with Throwable #26429

@instabledesign

Description

@instabledesign
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? yes
Symfony/Debug >=4.0.0

The class FlattenException doesn't work with Throwable

Symfony\Component\Debug\Exception\FlattenException::create(new TypeError('Bad type error.'));
TypeError: Argument 1 passed to Symfony\Component\Debug\Exception\FlattenException::create() must be an instance of Exception, instance of TypeError given, called in /var/www/index.php on line 5 in /var/www/vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/FlattenException.php on line 36

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions