Skip to content

Commit 5b74086

Browse files
maxime-akninnicolas-grekas
authored andcommitted
Fix Reflection file name with eval()\'d code
remove eval()\'d code from lineage
1 parent 74294c8 commit 5b74086

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)