Skip to content

Commit 97c0f0c

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Remove void return type from test methods Added basque translations Updated Luxembourgish translations [Mailer] Fix parsing Dsn with empty user/password Normalize exceptions messages containing methods references [Ldap] Incorrect determination of RelativeDistinguishedName for the "move" operation
2 parents 8d8512e + 773f9fd commit 97c0f0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Mapping/Loader/AnnotationLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,21 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
110110
foreach ($this->loadAnnotations($method) as $annotation) {
111111
if ($annotation instanceof Groups) {
112112
if (!$accessorOrMutator) {
113-
throw new MappingException(sprintf('Groups on "%s::%s" cannot be added. Groups can only be added on methods beginning with "get", "is", "has" or "set".', $className, $method->name));
113+
throw new MappingException(sprintf('Groups on "%s::%s()" cannot be added. Groups can only be added on methods beginning with "get", "is", "has" or "set".', $className, $method->name));
114114
}
115115

116116
foreach ($annotation->getGroups() as $group) {
117117
$attributeMetadata->addGroup($group);
118118
}
119119
} elseif ($annotation instanceof MaxDepth) {
120120
if (!$accessorOrMutator) {
121-
throw new MappingException(sprintf('MaxDepth on "%s::%s" cannot be added. MaxDepth can only be added on methods beginning with "get", "is", "has" or "set".', $className, $method->name));
121+
throw new MappingException(sprintf('MaxDepth on "%s::%s()" cannot be added. MaxDepth can only be added on methods beginning with "get", "is", "has" or "set".', $className, $method->name));
122122
}
123123

124124
$attributeMetadata->setMaxDepth($annotation->getMaxDepth());
125125
} elseif ($annotation instanceof SerializedName) {
126126
if (!$accessorOrMutator) {
127-
throw new MappingException(sprintf('SerializedName on "%s::%s" cannot be added. SerializedName can only be added on methods beginning with "get", "is", "has" or "set".', $className, $method->name));
127+
throw new MappingException(sprintf('SerializedName on "%s::%s()" cannot be added. SerializedName can only be added on methods beginning with "get", "is", "has" or "set".', $className, $method->name));
128128
}
129129

130130
$attributeMetadata->setSerializedName($annotation->getSerializedName());

0 commit comments

Comments
 (0)