1 | <?php |
||
14 | class ToolbarTwigExtension extends AbstractExtension |
||
15 | { |
||
16 | /** |
||
17 | * Returns a list of functions to add to the existing list. |
||
18 | * |
||
19 | * @return array An array of functions |
||
|
|||
20 | */ |
||
21 | public function getFunctions() |
||
27 | |||
28 | /** |
||
29 | * @param Environment $env |
||
30 | * @param $template |
||
31 | * @param $block |
||
32 | * @param $context |
||
33 | * |
||
34 | * @return string |
||
35 | */ |
||
36 | public function renderBlock(Environment $env, $template, $block, $context) |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getName() |
||
51 | } |
||
52 |
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.