Fix other minor type issues in libs
[MAILPOET-3926]
This commit is contained in:
committed by
Veljko V
parent
82f666c488
commit
d13f63b3e2
@ -42,6 +42,9 @@ class MetadataCache extends CacheProvider {
|
||||
if ($fileExists && $this->isDevMode) {
|
||||
$classMetadata = unserialize((string)file_get_contents($filename));
|
||||
assert($classMetadata instanceof DoctrineClassMetadata || $classMetadata instanceof ValidatorClassMetadata);
|
||||
if (!class_exists($classMetadata->name)) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$reflection = new ReflectionClass($classMetadata->name);
|
||||
} catch (ReflectionException $e) {
|
||||
|
Reference in New Issue
Block a user