We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84c9225 + 9ae38a5 commit 9036654Copy full SHA for 9036654
Validator/Constraints/UniqueEntityValidator.php
@@ -40,7 +40,7 @@ public function __construct(ManagerRegistry $registry)
40
public function validate($entity, Constraint $constraint)
41
{
42
if (!$constraint instanceof UniqueEntity) {
43
- throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\UniqueEntity');
+ throw new UnexpectedTypeException($constraint, UniqueEntity::class);
44
}
45
46
if (!\is_array($constraint->fields) && !\is_string($constraint->fields)) {
0 commit comments