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

@@ -28,14 +28,14 @@ class TimeFormatValidatorTest extends ConstraintValidatorTestCase
return new TimeFormatValidator();
}
public function testConstraintIsInvalid()
public function testConstraintIsInvalid(): void
{
$this->expectException(UnexpectedTypeException::class);
$this->validator->validate('foo', new NotBlank());
}
public function testWrongValueThrowsException()
public function testWrongValueThrowsException(): void
{
$this->expectException(UnexpectedValueException::class);
$this->expectExceptionMessage('Expected argument of type "string", "stdClass" given');
@@ -46,7 +46,7 @@ class TimeFormatValidatorTest extends ConstraintValidatorTestCase
/**
* @dataProvider getValidTimes
*/
public function testValidationSucceeds(?string $value)
public function testValidationSucceeds(?string $value): void
{
$this->validator->validate($value, new TimeFormat());
$this->assertNoViolation();
@@ -69,7 +69,7 @@ class TimeFormatValidatorTest extends ConstraintValidatorTestCase
/**
* @dataProvider getInvalidTimes
*/
public function testValidationProblem(?string $value)
public function testValidationProblem(?string $value): void
{
$this->validator->validate($value, new TimeFormat());