1 | <?php namespace Limoncello\Validation\Validator; |
||
27 | trait Captures |
||
28 | { |
||
29 | /** |
||
30 | * @param string $name |
||
31 | * @param RuleInterface $rule |
||
32 | * @param CaptureAggregatorInterface $aggregator |
||
33 | * |
||
34 | * @return RuleInterface |
||
|
|||
35 | */ |
||
36 | 3 | protected static function singleCapture($name, RuleInterface $rule, CaptureAggregatorInterface $aggregator) |
|
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * @param RuleInterface $rule |
||
44 | * @param CaptureAggregatorInterface $aggregator |
||
45 | * |
||
46 | * @return RuleInterface |
||
47 | */ |
||
48 | 2 | protected static function multiCapture($name, RuleInterface $rule, CaptureAggregatorInterface $aggregator) |
|
52 | } |
||
53 |
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.