Add return types to createValidator methods in test classes

This commit is contained in:
2026-01-02 15:03:22 +01:00
parent 55c11c7f04
commit 3afdedabad
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
*/
class UserGroupDoNotExcludeTest extends ConstraintValidatorTestCase
{
protected function createValidator()
protected function createValidator(): UserGroupDoNotExclude
{
return new UserGroupDoNotExclude(
new class () implements TranslatableStringHelperInterface {

View File

@@ -27,7 +27,7 @@ class SetPersonCommandConstraintValidatorTest extends ConstraintValidatorTestCas
{
private string $personPerTicket = 'many';
protected function createValidator()
protected function createValidator(): SetPersonCommandConstraintValidator
{
return new SetPersonCommandConstraintValidator(
new ParameterBag(['chill_ticket' => ['ticket' => ['person_per_ticket' => $this->personPerTicket]]])