doctrine / doctrine/annotations
CachedReader fails if Reflection class is eval'd code
Open
- Dominant language
- PHP
- Stars
- 6.7k
- Forks
- 234
- PR merge metrics
- No merged PRs in 30d
Description
If the ReflectionClass is eva'd code, then it crashes when checking when the cache is fresh. It tries to [CachedReader::getLastModification](https://github.com/doctrine/annotations/blob/master/lib/Doctrine/Common/Annotations/CachedReader.php#L236) of the eval'd code and results in:
**Warning:` filemtime(): stat failed for /app/src/MyCode/EntityGenerator.php(36) : eval()'d code**
Contributor guide
Assessment
This issue has not been assessed yet.