1 | <?php |
||
11 | class ToolbarTwigExtension extends Twig_Extension |
||
12 | { |
||
13 | /** |
||
14 | * Returns a list of functions to add to the existing list. |
||
15 | * |
||
16 | * @return array An array of functions |
||
|
|||
17 | */ |
||
18 | public function getFunctions() |
||
24 | |||
25 | /** |
||
26 | * @param Twig_Environment $env |
||
27 | * @param $template |
||
28 | * @param $block |
||
29 | * @param $context |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | public function renderBlock(Twig_Environment $env, $template, $block, $context) |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getName() |
||
48 | } |
||
49 |
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.