Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Filesystem] Added silence operator to rename().

  • Loading branch information...
commit 096cc68bdb86bb2e1215fc9d3b1cf25ac4651a85 1 parent 6eb014c
@alessandro1997 alessandro1997 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Filesystem.php
View
2  Filesystem.php
@@ -137,7 +137,7 @@ public function rename($origin, $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));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.