Skip to content

Commit 3ffeb31

Browse files
Merge branch '6.1' into 6.2
* 6.1: [Mailer] Include all transports' debug messages in RoundRobin transport exception [FrameworkBundle] fix: fix help message Fix HtmlSanitizer default configuration behavior for allowed schemes Use relative timestamps [Cache] Fix dealing with ext-redis' multi/exec returning a bool [Messenger][Amqp] Added missing rpc_timeout option [Serializer] Prevent GetSetMethodNormalizer from creating invalid magic method call [HttpFoundation] Fix dumping array cookies [WebProfilerBundle] Fix dump header not being displayed TraceableHttpClient: increase decorator's priority Use static methods inside data providers [FrameworkBundle] Allow configuring `framework.exceptions` with a config builder bug #48313 [Mime] Fix MessagePart serialization [HttpKernel][ErrorHandler] Fix reading the SYMFONY_IDE env var [ErrorHandler][DebugClassLoader] Fix some new return types support Fix getting the name of closures on PHP 8.1.11+ [Translator] Fix typo "internal" / "interval" fix dumping top-level tagged values [Console] Fix clear line with question in section
2 parents 9efb161 + ca91778 commit 3ffeb31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Debug/WrappedListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct(callable|array $listener, ?string $name, Stopwatch $
5050
$r = new \ReflectionFunction($listener);
5151
if (str_contains($r->name, '{closure}')) {
5252
$this->pretty = $this->name = 'closure';
53-
} elseif ($class = $r->getClosureScopeClass()) {
53+
} elseif ($class = \PHP_VERSION_ID >= 80111 ? $r->getClosureCalledClass() : $r->getClosureScopeClass()) {
5454
$this->name = $class->name;
5555
$this->pretty = $this->name.'::'.$r->name;
5656
} else {

0 commit comments

Comments
 (0)