Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function getFunctions() |
||
32 | { |
||
33 | return [ |
||
34 | 'get_possible_child_types' => new TwigFunction( |
||
35 | 'get_possible_child_types', [$this, 'getPossibleChildTypes'] |
||
36 | ), |
||
37 | 'get_homepage_types' => new TwigFunction( |
||
38 | 'get_homepage_types', [$this, 'getHomepageTypes'] |
||
39 | ), |
||
40 | ]; |
||
41 | } |
||
42 | |||
61 |
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.