Skip to content

Commit f51b0b8

Browse files
Merge branch '6.4' into 7.0
* 6.4: [TwigBridge] Fix `@internal` annotation the debug log processor must be a callable
2 parents 8120f3f + 2196b67 commit f51b0b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Bridge/Twig/Extension/CodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @author Fabien Potencier <fabien@symfony.com>
2525
*
26-
* @internal
26+
* @internal since Symfony 6.4
2727
*/
2828
final class CodeExtension extends AbstractExtension
2929
{

src/Symfony/Component/HttpKernel/Log/DebugLoggerConfigurator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
*/
1919
class DebugLoggerConfigurator
2020
{
21-
private ?DebugLoggerInterface $processor = null;
21+
private ?\Closure $processor = null;
2222

23-
public function __construct(DebugLoggerInterface $processor, bool $enable = null)
23+
public function __construct(callable $processor, bool $enable = null)
2424
{
2525
if ($enable ?? !\in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
26-
$this->processor = $processor;
26+
$this->processor = $processor(...);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)