Skip to content

Commit 098af56

Browse files
committed
Fixed class metadata factory
1 parent 671e1c4 commit 098af56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Mapping/ClassMetadataFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public function getClassMetadata($subject): ClassMetadata
7272
->toString();
7373

7474
try {
75-
return $cache->get($cacheKey, function () use ($factory, $subject) {
76-
return $factory->loadClassMetadata($subject);
75+
return $cache->get($cacheKey, function () use ($factory, $reflectionClass) {
76+
return $factory->loadClassMetadata($reflectionClass);
7777
});
7878
} catch (InvalidArgumentException $e) {
7979
throw new RuntimeException(sprintf('Failed to retrieve class metadata cache entry at key "%s"', $cacheKey), 0, $e);

0 commit comments

Comments
 (0)