From 1998f3f5ecef7de89ca2b1c166a570649e735119 Mon Sep 17 00:00:00 2001 From: Alessandro Desantis Date: Tue, 10 Apr 2012 10:15:18 +0200 Subject: [PATCH] [Filesystem] Added silence operator to rename(). --- src/Symfony/Component/Filesystem/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }