Skip to content

Commit 651e5d2

Browse files
committed
Remove class_exists condition for $fqcn as it makes issue when refreshing cache on symfony project (fqcn is found in prod cache but not in working in progress cache folder). It also insure that compiling happens all the time it's requested.
1 parent e91cbe8 commit 651e5d2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Compiler/Compiler.php

-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ public function compile(
4040
$className = $context->getClassName() ?? $this->randomClassName('Mapper');
4141

4242
$fqcn = (string) ($class = ($context->getClass() ?? new ClassReferenceMetadata($className, $namespace)));
43-
if (class_exists($fqcn, true)) {
44-
return new $fqcn();
45-
}
4643

4744
if ($context->getFilePath() !== null && file_exists($context->getFilePath())) {
4845
include $context->getFilePath();

0 commit comments

Comments
 (0)