Skip to content

Commit 9036654

Browse files
Merge branch '3.4' into 4.3
* 3.4: Use `::class` constants instead of `__NAMESPACE__` when possible
2 parents 84c9225 + 9ae38a5 commit 9036654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Validator/Constraints/UniqueEntityValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(ManagerRegistry $registry)
4040
public function validate($entity, Constraint $constraint)
4141
{
4242
if (!$constraint instanceof UniqueEntity) {
43-
throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\UniqueEntity');
43+
throw new UnexpectedTypeException($constraint, UniqueEntity::class);
4444
}
4545

4646
if (!\is_array($constraint->fields) && !\is_string($constraint->fields)) {

0 commit comments

Comments
 (0)