8000 Skip empty proxy code · symfony/symfony@baf6f8c · GitHub
[go: up one dir, main page]

Skip to content

Commit baf6f8c

Browse files
olvlvlnicolas-grekas
authored andcommitted
Skip empty proxy code
8000
1 parent 6a50405 commit baf6f8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 3 additions & 1 deletion
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)
0