Skip to content

Commit e0495f8

Browse files
Merge branch '4.4' into 5.0
* 4.4: Use `::class` constants instead of `__NAMESPACE__` when possible
2 parents b55b65a + 08cf3d3 commit e0495f8

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)