Skip to content

Commit 8b7508c

Browse files
olvlvlnicolas-grekas
authored andcommitted
Skip empty proxy code
1 parent bc5e7d8 commit 8b7508c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dumper/PhpDumper.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ private function addProxyClasses()
233233
$strip = '' === $this->docStar && method_exists('Symfony\Component\HttpKernel\Kernel', 'stripComments');
234234

235235
foreach ($definitions as $definition) {
236-
$proxyCode = "\n".$this->getProxyDumper()->getProxyCode($definition);
236+
if ("\n" === $proxyCode = "\n".$this->getProxyDumper()->getProxyCode($definition)) {
237+
continue;
238+
}
237239
if ($strip) {
238240
$proxyCode = "<?php\n".$proxyCode;
239241
$proxyCode = substr(Kernel::stripComments($proxyCode), 5);

0 commit comments

Comments
 (0)