Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbaf6f8c

Browse files
olvlvlnicolas-grekas
authored andcommitted
Skip empty proxy code
1 parent6a50405 commitbaf6f8c

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 ($definitionsas$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)

[8]ページ先頭

©2009-2025 Movatter.jp