You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewIOException(sprintf('Failed to copy "%s" to "%s" because target file could not be opened for writing.', $originFile, $targetFile), 0, null, $originFile);
64
64
}
65
65
@@ -165,7 +165,7 @@ public function remove($files)
165
165
if ($filesinstanceof \Traversable) {
166
166
$files = iterator_to_array($files, false);
167
167
} elseif (!\is_array($files)) {
168
-
$files = array($files);
168
+
$files = [$files];
169
169
}
170
170
$files = array_reverse($files);
171
171
foreach ($filesas$file) {
@@ -282,7 +282,7 @@ public function rename($origin, $target, $overwrite = false)
282
282
if (true !== @rename($origin, $target)) {
283
283
if (is_dir($origin)) {
284
284
// See https://bugs.php.net/bug.php?id=54097 & http://php.net/manual/en/function.rename.php#113943
0 commit comments