1 | <?php |
||
10 | class LocaleRuleService implements RuleServiceInterface |
||
11 | { |
||
12 | /** @var Request $request */ |
||
13 | private $request; |
||
14 | |||
15 | /** |
||
16 | * LocaleRuleService constructor. |
||
17 | * |
||
18 | * @param RequestStack $requestStack |
||
19 | */ |
||
20 | public function __construct(RequestStack $requestStack) |
||
24 | |||
25 | /** |
||
26 | * @param AbstractRule $rule |
||
27 | * |
||
28 | * @return array |
||
|
|||
29 | */ |
||
30 | public function getJsProperties(AbstractRule $rule) |
||
36 | } |
||
37 |
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.