diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index 1eb8e05b03..76dab0354a 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -137,7 +137,7 @@ class Filesystem throw new \RuntimeException(sprintf('Cannot rename because the target "%s" already exist.', $target)); } - if (false === rename($origin, $target)) { + if (false === @rename($origin, $target)) { throw new \RuntimeException(sprintf('Cannot rename "%s" to "%s".', $origin, $target)); } }