From bf56734480b9276cb68bc6456a89a16e3f414329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Houlgrave?= Date: Mon, 11 Aug 2014 12:27:49 -0300 Subject: [PATCH] Update Twig.php Solves the error: ```Strict Standards: Declaration of Slim\Views\Twig::render() should be compatible with Slim\View::render($template, $data = NULL) in /Applications/MAMP/htdocs/slim/api/Slim/Views/Twig.php``` --- Views/Twig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/Twig.php b/Views/Twig.php index c2feb41..7e3a819 100644 --- a/Views/Twig.php +++ b/Views/Twig.php @@ -91,7 +91,7 @@ private function getTemplateDirs() * @param string $template The path to the Twig template, relative to the Twig templates directory. * @return void */ - public function render($template) + public function render($template, $data = null) { $env = $this->getEnvironment(); $template = $env->loadTemplate($template);