[Filesystem] Added silence operator to rename().
This commit is contained in:
parent
7ce5a526ec
commit
1998f3f5ec
@ -137,7 +137,7 @@ class Filesystem
|
|||||||
throw new \RuntimeException(sprintf('Cannot rename because the target "%s" already exist.', $target));
|
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));
|
throw new \RuntimeException(sprintf('Cannot rename "%s" to "%s".', $origin, $target));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user