Skip to content

Commit 0ffce2b

Browse files
committed
Remove unused code
1 parent 7dfdd3e commit 0ffce2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Mapping/Loader/LoaderChain.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ public function loadClassMetadata(
7777
/**
7878
* @param ClassMetadata $classMetaData
7979
*
80-
* @throws \Exception
80+
* @throws \RunTimeException
8181
*/
8282
private function checkClassMetaData(ClassMetadata $classMetaData)
8383
{
84-
if (($identifier = $classMetaData->getIdentifier()) === null) {
85-
throw new \Exception(sprintf('Class "%s" have no identifier', $classMetaData->getName()));
84+
if (!$classMetaData->getIdentifier()) {
85+
throw new \RunTimeException(sprintf('Class "%s" have no identifier.', $classMetaData->getName()));
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)