Skip to content

Commit 08cf3d3

Browse files
Merge branch '4.3' into 4.4
* 4.3: Use `::class` constants instead of `__NAMESPACE__` when possible
2 parents 723a46b + 9036654 commit 08cf3d3

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)