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

@@ -21,7 +21,7 @@ trait EntityValidationTestTrait
* @param object $entity
* @param array|string $fieldNames
*/
protected function assertHasViolationForField(object $entity, $fieldNames, $groups = null)
public function assertHasViolationForField(object $entity, $fieldNames, $groups = null): void
{
self::bootKernel();
/** @var ValidatorInterface $validator */
@@ -56,7 +56,7 @@ trait EntityValidationTestTrait
$this->assertEquals($expected, $countViolations, sprintf('Expected %s violations, found %s in %s.', $expected, $actual, implode(', ', array_keys($violatedFields))));
}
protected function assertHasNoViolations($entity, $groups = null)
public function assertHasNoViolations($entity, $groups = null): void
{
self::bootKernel();
/** @var ValidatorInterface $validator */