Skip to content

Commit e54df77

Browse files
committed
Update TemplateCompiler.php
1 parent e57b595 commit e54df77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WebFiori/UI/TemplateCompiler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class TemplateCompiler {
4747
* value of each key represents the value of the variable inside the template.
4848
* This parameter is applicable only if the template is a PHP file.
4949
*
50-
* @throws TemplateNotFoundException If no file is found which has given path.
51-
* @throws InvalidNodeNameException
50+
* @throws InvalidArgumentException When template path is empty
51+
* @throws TemplateNotFoundException When template file is not found
52+
* @throws InvalidNodeNameException When template contains invalid HTML elements
5253
*/
5354
public function __construct(string $templatePath, array $vars = []) {
5455
$trimmedPath = trim($templatePath);

0 commit comments

Comments
 (0)