Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)
This commit is contained in:
@@ -93,7 +93,7 @@ class RoleValidatorTest extends ConstraintValidatorTestCase
|
||||
|
||||
$this->validator->validate($role, $constraint);
|
||||
|
||||
$expectedFormat = \is_string($role) ? '"' . $role . '"' : $role;
|
||||
$expectedFormat = \is_string($role) ? '"' . $role . '"' : (string) $role;
|
||||
|
||||
$this->buildViolation('myMessage')
|
||||
->setParameter('{{ value }}', $expectedFormat)
|
||||
|
||||
Reference in New Issue
Block a user