mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-03 20:49:41 +00:00
Add return types to createValidator methods in test classes
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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]]])
|
||||
|
||||
Reference in New Issue
Block a user