From c443aa09e37c2a7e3e7839a37d951b6e0590468e 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 --- framework/core/src/Frontend/Compiler/JsCompiler.php | 2 +- framework/core/tests/integration/tmp/storage/views/.gitkeep | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 framework/core/tests/integration/tmp/storage/views/.gitkeep 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