Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
@ostrolucky

Description

@ostrolucky

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