Skip empty proxy code
This commit is contained in:
parent
6a50405483
commit
baf6f8cc34
@ -233,7 +233,9 @@ class PhpDumper extends Dumper
|
|||||||
$strip = '' === $this->docStar && method_exists('Symfony\Component\HttpKernel\Kernel', 'stripComments');
|
$strip = '' === $this->docStar && method_exists('Symfony\Component\HttpKernel\Kernel', 'stripComments');
|
||||||
|
|
||||||
foreach ($definitions as $definition) {
|
foreach ($definitions as $definition) {
|
||||||
$proxyCode = "\n".$this->getProxyDumper()->getProxyCode($definition);
|
if ("\n" === $proxyCode = "\n".$this->getProxyDumper()->getProxyCode($definition)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if ($strip) {
|
if ($strip) {
|
||||||
$proxyCode = "<?php\n".$proxyCode;
|
$proxyCode = "<?php\n".$proxyCode;
|
||||||
$proxyCode = substr(Kernel::stripComments($proxyCode), 5);
|
$proxyCode = substr(Kernel::stripComments($proxyCode), 5);
|
||||||
|
Reference in New Issue
Block a user