From 935a9682570f3b50536f96b31046125a79b6c9fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Mon, 24 Jun 2019 13:00:36 +0200 Subject: [PATCH] fixed tests on master, missing views directory and suppressing notices from tempnam when storing files in tmp --- src/Frontend/Compiler/JsCompiler.php | 2 +- tests/integration/tmp/storage/views/.gitkeep | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/integration/tmp/storage/views/.gitkeep diff --git a/src/Frontend/Compiler/JsCompiler.php b/src/Frontend/Compiler/JsCompiler.php index 5ff680f29..66b3d0b94 100644 --- a/src/Frontend/Compiler/JsCompiler.php +++ b/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/tests/integration/tmp/storage/views/.gitkeep b/tests/integration/tmp/storage/views/.gitkeep new file mode 100644 index 000000000..e69de29bb