10000 [ErrorRenderer] Cannot use object of type ErrorException as array · Issue #33631 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
k0d3r1s opened this issue Sep 18, 2019 · 0 comments · Fixed by #33632
Closed

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

k0d3r1s opened this issue Sep 18, 2019 · 0 comments · Fixed by #33632

Comments

@k0d3r1s
Copy link
Contributor
k0d3r1s commented Sep 18, 2019

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

@fabpot fabpot closed this as completed in b5ff996 Sep 19, 2019
nicolas-grekas added a commit that referenc 80C4 ed this issue Sep 19, 2019
* 4.4:
  Re-enable previously failing PHP 7.4 test cases
  [PhpUnitBridge] fix uninitialized variable
  [ErrorRenderer] fix Cannot use object of type ErrorException as array exception #33631
  [Twig] Add missing check
  Revert "bug #33618 fix tests depending on other components' tests (xabbuh)"
  install from source to include components tests
  Fix undefined constant and other minor issues
  [Twig] Add NotificationEmail
  ensure compatibility with type resolver 0.5
  Call AssertEquals with proper parameters
  [DependencyInjection] Allow binding iterable and tagged services
  [Twig] Fix Twig config extra keys
  fix tests depending on other components' tests
  Fix lint commands frozen on empty stdin
PhilETaylor pushed a commit to PhilETaylor/symfony that referenced this issue Sep 6, 2023
* 4.4:
  Re-enable previously failing PHP 7.4 test cases
  [PhpUnitBridge] fix uninitialized variable
  [ErrorRenderer] fix Cannot use object of type ErrorException as array exception symfony#33631
  [Twig] Add missing check
  Revert "bug symfony#33618 fix tests depending on other components' tests (xabbuh)"
  install from source to include components tests
  Fix undefined constant and other minor issues
  [Twig] Add NotificationEmail
  ensure compatibility with type resolver 0.5
  Call AssertEquals with proper parameters
  [DependencyInjection] Allow binding iterable and tagged services
  [Twig] Fix Twig config extra keys
  fix tests depending on other components' tests
  Fix lint commands frozen on empty stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0