Skip to content

Commit 2b3ec65

Browse files
Merge branch '6.4' into 7.3
* 6.4: [HttpKernel] Fix using MapRequestPayload on nullable arguments [DependencyInjection] Fix preloading LazyClosure [Emoji] Update list to version 17 [HttpClient] Don't reset unused clients in data collector
2 parents 5bb81bd + 377f515 commit 2b3ec65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ private function addNewInstance(Definition $definition, string $return = '', ?st
11901190
|| ($callable[0] instanceof Definition && !$this->definitionVariables->offsetExists($callable[0]))
11911191
))) {
11921192
$initializer = 'fn () => '.$this->dumpValue($callable[0]);
1193+
$this->preload[LazyClosure::class] = LazyClosure::class;
11931194

11941195
return $return.LazyClosure::getCode($initializer, $callable, $class, $this->container, $id).$tail;
11951196
}

0 commit comments

Comments
 (0)