Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FrameworkBundle] Configuring framework exceptions does not work with config builders #48191

Copy link
Copy link
Closed
@ostrolucky

Description

@ostrolucky
Issue body actions

Symfony version(s) affected

6.2.0-BETA2

Description

PHP example from https://symfony.com/doc/current/reference/configuration/framework.html#exceptions doesn't work. It fails with error

Symfony\Config\FrameworkConfig::exceptions(): Argument #1 ($value) must be of type array, string given, called in /vagrant/fe-bl-service/config/packages/framework.php

How to reproduce

<?php

declare(strict_types=1);

use Symfony\Component\Messenger\Exception\RejectRedeliveredMessageException;
use Symfony\Config\FrameworkConfig;

return static function (FrameworkConfig $frameworkConfig): void {
    $frameworkConfig->exceptions(RejectRedeliveredMessageException::class)->logLevel('debug');
}

Possible Solution

No response

Additional Context

No response

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.