CachedReader fails if Reflection class is eval'd code
Author: yakobeCreated Mar 21, 2018Updated Jul 7, 2022
If the ReflectionClass is eva'd code, then it crashes when checking when the cache is fresh. It tries to CachedReader::getLastModification of the eval'd code and results in:
Warning:` filemtime(): stat failed for /app/src/MyCode/EntityGenerator.php(36) : eval()'d code
Source: doctrine/annotations