Skip to content

Commit

Permalink
Silenced Error Removing tmp. Container File #735
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Struwe committed Sep 24, 2020
1 parent f4d00b2 commit 7bdaf46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler/Compiler.php
Expand Up @@ -202,8 +202,8 @@ private function writeFileAtomic(string $fileName, string $content) : int

@chmod($tmpFile, 0666);
$renamed = @rename($tmpFile, $fileName);
@unlink($tmpFile);
if (!$renamed) {
@unlink($tmpFile);
throw new InvalidArgumentException(sprintf('Error while renaming %s to %s', $tmpFile, $fileName));
}

Expand Down

0 comments on commit 7bdaf46

Please sign in to comment.