8000 bug #38582 [DI] Fix Reflection file name with eval()\'d code (maxime-… · symfony/symfony@f6dc826 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6dc826

Browse files
bug #38582 [DI] Fix Reflection file name with eval()\'d code (maxime-aknin)
This PR was merged into the 3.4 branch. Discussion ---------- [DI] Fix Reflection file name with eval()\'d code | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - remove eval()\'d code from lineage similar to #30363 Commits ------- 394a694 Fix Reflection file name with eval()\'d code
2 parents 89dddd1 + 394a694 commit f6dc826

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ private function collectLineage($class, array &$lineage)
374374
return;
375375
}
376376
$file = $r->getFileName();
377+
if (') : eval()\'d code' === substr($file, -17)) {
378+
$file = substr($file, 0, strrpos($file, '(', -17));
379+
}
377380
if (!$file || $this->doExport($file) === $exportedFile = $this->export($file)) {
378381
return;
379382
}

0 commit comments

Comments
 (0)
0