Skip to content

Commit

Permalink
bug #38582 [DI] Fix Reflection file name with eval()\'d code (maxime-…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
nicolas-grekas committed Oct 15, 2020
2 parents 89dddd1 + 394a694 commit f6dc826
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 f6dc826

Please sign in to comment.