Skip to content

Commit

Permalink
Update Renderer::render
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Feb 5, 2018
1 parent 4d9644b commit 52e1106
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Template/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 52e1106

Please sign in to comment.