Release 2.12 (#4609)

This commit is contained in:
Kevin Papst
2024-02-07 23:47:25 +01:00
committed by GitHub
parent 7abe787778
commit 85a16a9363
394 changed files with 1189 additions and 6735 deletions

View File

@@ -42,7 +42,7 @@ class RoleValidatorTest extends ConstraintValidatorTestCase
];
}
public function testConstraintIsInvalid()
public function testConstraintIsInvalid(): void
{
$this->expectException(UnexpectedTypeException::class);
@@ -53,14 +53,14 @@ class RoleValidatorTest extends ConstraintValidatorTestCase
* @dataProvider getValidRoles
* @param string $role
*/
public function testConstraintWithValidRole($role)
public function testConstraintWithValidRole($role): void
{
$constraint = new Role();
$this->validator->validate($role, $constraint);
$this->assertNoViolation();
}
public function testNullIsInvalid()
public function testNullIsInvalid(): void
{
$this->validator->validate(null, new Role(['message' => 'myMessage']));
@@ -86,7 +86,7 @@ class RoleValidatorTest extends ConstraintValidatorTestCase
* @dataProvider getInvalidRoles
* @param mixed $role
*/
public function testValidationError($role)
public function testValidationError($role): void
{
$constraint = new Role([
'message' => 'myMessage',