Skip to content

[ErrorRenderer] Cannot use object of type ErrorException as array #33631

@k0d3r1s

Description

@k0d3r1s

Symfony version(s) affected: 4.4.x-dev 8853c2c

Description
On any exception another exception is thrown about using ErrorException as array

How to reproduce
throw any exception

Possible Solution

if (($exception = $log['context']['exception'] ?? null) && $exception instanceof ErrorException) {
    $severity = $log['context']['exception']->getSeverity();
} else {
    $severity = $log['context']['exception']['severity'] ?? false;
}

Additional context
Screenshot at 2019-09-18 19-46-43

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy