Skip to content

Commit 979adb9

Browse files
committed
[2.7] Fix issues reported by static analyse
1 parent e85b2ff commit 979adb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mapping/Loader/YamlFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
7979

8080
if (isset($data['groups'])) {
8181
if (!is_array($data['groups'])) {
82-
throw new MappingException('The "groups" key must be an array of strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
82+
throw new MappingException(sprintf('The "groups" key must be an array of strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
8383
}
8484

8585
foreach ($data['groups'] as $group) {
8686
if (!is_string($group)) {
87-
throw new MappingException('Group names must be strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName());
87+
throw new MappingException(sprintf('Group names must be strings in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
8888
}
8989

9090
$attributeMetadata->addGroup($group);

0 commit comments

Comments
 (0)