Skip to content

Commit 74426f9

Browse files
Merge branch '7.3' into 7.4
* 7.3: fix merge [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 6daa624 + 2b3ec65 commit 74426f9

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
@@ -1189,6 +1189,7 @@ private function addNewInstance(Definition $definition, string $return = '', ?st
11891189
|| ($callable[0] instanceof Definition && !$this->definitionVariables->offsetExists($callable[0]))
11901190
))) {
11911191
$initializer = 'fn () => '.$this->dumpValue($callable[0]);
1192+
$this->preload[LazyClosure::class] = LazyClosure::class;
11921193

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

0 commit comments

Comments
 (0)