Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed May 31, 2020
2 parents 6b86a6d + b7d58bc commit c6f4c7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ public function getMetadataForClass(string $className)

if (null !== $classMetadata) {
if (!$classMetadata instanceof ClassMetadata) {
throw new \LogicException(sprintf('The cache must return instances of ClassMetadata, but got %s.', var_export($classMetadata, true)));
throw new \LogicException(sprintf(
'The cache must return instances of ClassMetadata for class %s, but got %s.',
$className,
var_export($classMetadata, true)
));
}

if ($this->debug && !$classMetadata->isFresh()) {
Expand Down

0 comments on commit c6f4c7c

Please sign in to comment.