doctrine / doctrine/annotations

CachedReader fails if Reflection class is eval'd code

Open
#186 17 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.