diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 95e4a801071b8..e20972caee3d6 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -695,7 +695,9 @@ public function dumpFile($filename, $content) $this->rename($tmpFile, $filename, true); } finally { - @unlink($tmpFile); + if (file_exists($tmpFile)) { + @unlink($tmpFile); + } } }