feat(template): fix incorrect if condition
This commit is contained in:
parent
2919e70d05
commit
e6e0baab12
|
@ -22,7 +22,7 @@ class Template extends View
|
|||
*/
|
||||
public static function fromFile(string $path): self
|
||||
{
|
||||
if (\is_readable($path)) {
|
||||
if (!\is_readable($path)) {
|
||||
throw new Exception("$path view template is not readable.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue