mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-28 01:40:33 +00:00
fixed compat with PHP 5
This commit is contained in:
+1
-1
@@ -522,7 +522,7 @@ class Environment
|
||||
* @throws LoaderError When the template cannot be found
|
||||
* @throws SyntaxError When an error occurred during compilation
|
||||
*/
|
||||
public function createTemplate($template, string $name = null)
|
||||
public function createTemplate($template, $name = null)
|
||||
{
|
||||
$hash = hash('sha256', $template, false);
|
||||
if (null !== $name) {
|
||||
|
||||
Reference in New Issue
Block a user