Skip to content

Commit ed7d37f

Browse files
[DI] fix dumping lazy proxies
1 parent 17c0629 commit ed7d37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ private function generateProxyClasses(): array
492492
$proxyCode = substr(Kernel::stripComments($proxyCode), 5);
493493
}
494494

495-
$proxyClasses[sprintf('%s.php', explode(' ', $proxyCode, 3)[1])] = $proxyCode;
495+
$proxyClasses[sprintf('%s.php', explode(' ', $this->inlineRequires ? substr($proxyCode, \strlen($code)) : $proxyCode, 3)[1])] = $proxyCode;
496496
}
497497

498498
return $proxyClasses;

0 commit comments

Comments
 (0)