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.
::class
__NAMESPACE__
1 parent 44645bd commit 9ae38a5Copy full SHA for 9ae38a5
Validator/Constraints/UniqueEntityValidator.php
@@ -44,7 +44,7 @@ public function __construct($registry)
44
public function validate($entity, Constraint $constraint)
45
{
46
if (!$constraint instanceof UniqueEntity) {
47
- throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\UniqueEntity');
+ throw new UnexpectedTypeException($constraint, UniqueEntity::class);
48
}
49
50
if (!\is_array($constraint->fields) && !\is_string($constraint->fields)) {
0 commit comments