Release 2.13 (#4659)
This commit is contained in:
@@ -19,9 +19,9 @@ trait EntityValidationTestTrait
|
||||
{
|
||||
/**
|
||||
* @param object $entity
|
||||
* @param array|string $fieldNames
|
||||
* @param array<string>|string $fieldNames
|
||||
*/
|
||||
public function assertHasViolationForField(object $entity, $fieldNames, $groups = null): void
|
||||
public function assertHasViolationForField(object $entity, array|string $fieldNames, $groups = null): void
|
||||
{
|
||||
self::bootKernel();
|
||||
/** @var ValidatorInterface $validator */
|
||||
|
||||
@@ -24,7 +24,7 @@ class TimesheetValidationTest extends KernelTestCase
|
||||
{
|
||||
use EntityValidationTestTrait;
|
||||
|
||||
protected function getEntity()
|
||||
protected function getEntity(): Timesheet
|
||||
{
|
||||
$customer = new Customer('Test Customer');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user