diff --git a/src/Compiler.php b/src/Compiler.php index 529fa44..7fa0829 100755 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -241,8 +241,9 @@ protected function generateFiles(array $files, array $watchFiles = []): File $lastModified = $this->checkLastModified ? $this->getLastModified($watchFiles) : 0; if (!file_exists($path) || $lastModified > filemtime($path) || $this->debugging === true) { - $outPath = in_array('nette.safe', stream_get_wrappers(), true) ? 'nette.safe://' . $path : $path; - FileSystem::write($outPath, $this->getContent($files)); + // disabled: https://github.com/nette/safe-stream/pull/5 + // $outPath = in_array('nette.safe', stream_get_wrappers(), true) ? 'nette.safe://' . $path : $path; + FileSystem::write($path, $this->getContent($files)); } return new File($name, (int) filemtime($path), $files);