Skip to content

Commit 3e2dca4

Browse files
committed
Normalize exceptions messages containing methods references
1 parent cd7b89e commit 3e2dca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/Loader/AnnotationLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function loadClassMetadata(ClassMetadata $metadata)
7777
if (preg_match('/^(get|is|has)(.+)$/i', $method->name, $matches)) {
7878
$metadata->addGetterMethodConstraint(lcfirst($matches[2]), $matches[0], $constraint);
7979
} else {
80-
throw new MappingException(sprintf('The constraint on "%s::%s" cannot be added. Constraints can only be added on methods beginning with "get", "is" or "has".', $className, $method->name));
80+
throw new MappingException(sprintf('The constraint on "%s::%s()" cannot be added. Constraints can only be added on methods beginning with "get", "is" or "has".', $className, $method->name));
8181
}
8282
}
8383

0 commit comments

Comments
 (0)