1 | <?php |
||
10 | trait StringBetweenLengthValidatorTrait |
||
11 | { |
||
12 | /** @var UIValidationEngine */ |
||
13 | protected $validationEngine; |
||
14 | |||
15 | /** |
||
16 | * Domain should be responsible for id format |
||
17 | * Exceptions are caught in order to be processed later |
||
18 | * @param mixed $value String ? |
||
19 | * |
||
20 | * @return mixed Untouched value |
||
|
|||
21 | */ |
||
22 | public function mustHaveLengthBetween($value, int $min, int $max, string $propertyPath = null, UIValidatorInterface $parentValidator = null, string $exceptionMessage = null) |
||
56 | } |
||
57 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.