Skip to content

Commit 726b072

Browse files
Merge branch '4.3' into 4.4
* 4.3: Fix CS
2 parents 7774567 + 33ce0d9 commit 726b072

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,7 @@ protected function assertValidMappingConfiguration(array $mappingConfig, $object
237237
}
238238

239239
if (!\in_array($mappingConfig['type'], ['xml', 'yml', 'annotation', 'php', 'staticphp'])) {
240-
throw new \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "annotation", "php" or '.
241-
'"staticphp" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. '.
242-
'You can register them by adding a new driver to the '.
243-
'"%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')
244-
));
240+
throw new \InvalidArgumentException(sprintf('Can only configure "xml", "yml", "annotation", "php" or "staticphp" through the DoctrineBundle. Use your own bundle to configure other metadata drivers. You can register them by adding a new driver to the "%s" service definition.', $this->getObjectManagerElementName($objectManagerName.'_metadata_driver')));
245241
}
246242
}
247243

Security/User/EntityUserProvider.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ public function refreshUser(UserInterface $user)
8787
// That's the case when the user has been changed by a form with
8888
// validation errors.
8989
if (!$id = $this->getClassMetadata()->getIdentifierValues($user)) {
90-
throw new \InvalidArgumentException('You cannot refresh a user '.
91-
'from the EntityUserProvider that does not contain an identifier. '.
92-
'The user object has to be serialized with its own identifier '.
93-
'mapped by Doctrine.'
94-
);
90+
throw new \InvalidArgumentException('You cannot refresh a user from the EntityUserProvider that does not contain an identifier. The user object has to be serialized with its own identifier mapped by Doctrine.');
9591
}
9692

9793
$refreshedUser = $repository->find($id);

0 commit comments

Comments
 (0)