Closed
Description
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