1
0
Fork 0
mirror of synced 2024-07-01 04:30:59 +12:00

feat(template): fix incorrect if condition

This commit is contained in:
Christy Jacob 2021-07-23 23:16:03 +05:30
parent 2919e70d05
commit e6e0baab12

View file

@ -22,7 +22,7 @@ class Template extends View
*/ */
public static function fromFile(string $path): self public static function fromFile(string $path): self
{ {
if (\is_readable($path)) { if (!\is_readable($path)) {
throw new Exception("$path view template is not readable."); throw new Exception("$path view template is not readable.");
} }