@@ -39,7 +39,7 @@ |
||
39 | 39 | * Initialise Twig if it isn't already, and add a given Twig extension. |
40 | 40 | * This must be called before calling fromString(). |
41 | 41 | * |
42 | - * @param mixed $extension Already initialised extension to add |
|
42 | + * @param string $extension Already initialised extension to add |
|
43 | 43 | */ |
44 | 44 | public static function addExtension($extension) |
45 | 45 | { |
@@ -76,6 +76,9 @@ |
||
76 | 76 | return $dom->saveXML(); |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $name |
|
81 | + */ |
|
79 | 82 | private static function createTextNode(DOMDocument $dom, $name, $string) |
80 | 83 | { |
81 | 84 | $node = $dom->createElement($name); |