diff --git a/framework/core/src/Frontend/Compiler/JsCompiler.php b/framework/core/src/Frontend/Compiler/JsCompiler.php index 5ff680f29..66b3d0b94 100644 --- a/framework/core/src/Frontend/Compiler/JsCompiler.php +++ b/framework/core/src/Frontend/Compiler/JsCompiler.php @@ -58,7 +58,7 @@ class JsCompiler extends RevisionCompiler $this->assetsDir->put($file, implode("\n", $output)); - $mapTemp = tempnam(storage_path('tmp'), $mapFile); + $mapTemp = @tempnam(storage_path('tmp'), $mapFile); $map->save($mapTemp); $this->assetsDir->put($mapFile, file_get_contents($mapTemp)); @unlink($mapTemp); diff --git a/framework/core/tests/integration/tmp/storage/views/.gitkeep b/framework/core/tests/integration/tmp/storage/views/.gitkeep new file mode 100644 index 000000000..e69de29bb