Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit f23aa01

Browse files
authored
Update ViewLoader.php
1 parent fb92ce2 commit f23aa01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Loader/ViewLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function safeLoad (string $viewFile, mixed ...$props): self
9595
finally
9696
{
9797
// Remove generated file and reset global file path.
98-
unlink($gen_file);
98+
if (is_file($gen_file)) unlink($gen_file);
9999
$GLOBALS['__gen_file_path'] = $viewFile;
100100
}
101101
}

0 commit comments

Comments
 (0)