Skip to content

Commit

Permalink
Engine: unlock file before close
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 1, 2023
1 parent 7e6b408 commit 5be60f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Latte/Engine.php
Expand Up @@ -241,6 +241,8 @@ private function loadTemplate(string $name): void
if ((include $file) === false) {
throw new RuntimeException("Unable to load '$file'.");
}

flock($lock, LOCK_UN);
}


Expand Down

0 comments on commit 5be60f8

Please sign in to comment.