Skip to content

Commit

Permalink
Fix Reflection file name with eval()\'d code
Browse files Browse the repository at this point in the history
remove eval()\'d code from lineage
  • Loading branch information
maxime-aknin authored and nicolas-grekas committed Oct 15, 2020
1 parent 89dddd1 commit 394a694
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -374,6 +374,9 @@ private function collectLineage($class, array &$lineage)
return;
}
$file = $r->getFileName();
if (') : eval()\'d code' === substr($file, -17)) {
$file = substr($file, 0, strrpos($file, '(', -17));
}
if (!$file || $this->doExport($file) === $exportedFile = $this->export($file)) {
return;
}
Expand Down

0 comments on commit 394a694

Please sign in to comment.