Skip to content

Commit

Permalink
Skip empty proxy code
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Oct 14, 2018
1 parent e4e6159 commit 495124d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ private function generateProxyClasses()
$alreadyGenerated[$class] = true;
// register class' reflector for resource tracking
$this->container->getReflectionClass($class);
$proxyCode = "\n".$proxyDumper->getProxyCode($definition);
$proxyCode = $proxyDumper->getProxyCode($definition);
if (!$proxyCode) {
continue;
}
$proxyCode = "\n".$proxyCode;
if ($strip) {
$proxyCode = "<?php\n".$proxyCode;
$proxyCode = substr(Kernel::stripComments($proxyCode), 5);
Expand Down

0 comments on commit 495124d

Please sign in to comment.