fixed tests on master, missing views directory and suppressing notices from tempnam when storing files in tmp

This commit is contained in:
Daniël Klabbers 2019-06-24 13:00:36 +02:00
parent cbd57be8f1
commit c443aa09e3
2 changed files with 1 additions and 1 deletions

View File

@ -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);