From 52e11064dc38f6e27c06716a556a13aca259d03d Mon Sep 17 00:00:00 2001 From: Rougin Royce Gutib Date: Mon, 5 Feb 2018 09:18:11 +0800 Subject: [PATCH] Update Renderer::render --- src/Template/Renderer.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Template/Renderer.php b/src/Template/Renderer.php index e746d960..1de841cc 100644 --- a/src/Template/Renderer.php +++ b/src/Template/Renderer.php @@ -49,11 +49,9 @@ public function render($template, array $data = array()) } if (is_null($file) === true) { - $message = 'Template file "%s" not found.'; + $message = 'Template file "' . $name . '" not found.'; - $message = sprintf($message, $name); - - throw new \InvalidArgumentException($message); + throw new \InvalidArgumentException((string) $message); } return $this->extract($file, $data);