8000 Fix Reflection file name with eval()\'d code · symfony/symfony@394a694 · GitHub
[go: up one dir, main page]

Skip to content

Commit 394a694

Browse files
maxime-akninnicolas-grekas
authored andcommitted
Fix Reflection file name with eval()\'d code
remove eval()\'d code from lineage
1 parent 89dddd1 commit 394a694

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