Skip to content

Commit 6e4320f

Browse files
Merge branch '5.0' into 5.1
* 5.0: Fix abstract method name in PHP doc block Various cleanups [HttpClient] fix issues in tests Fixes sprintf(): Too few arguments in form transformer [Console] Fix QuestionHelper::disableStty() [Validator] Use Mime component to determine mime type for file validator validate subforms in all validation groups Update Hungarian translations Add meaningful message when Process is not installed (ProcessHelper) [PropertyAccess] Fix TypeError parsing again. [TwigBridge] fix fallback html-to-txt body converter [Security/Http] fix merge [ErrorHandler] fix setting $trace to null in FatalError [Form] add missing Czech validators translation [Validator] add missing Czech translations never directly validate Existence (Required/Optional) constraints
2 parents c413015 + 6edf8b9 commit 6e4320f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Filesystem.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function mkdir($dirs, int $mode = 0777)
9797
if (!is_dir($dir)) {
9898
// The directory was not created by a concurrent process. Let's throw an exception with a developer friendly error message if we have one
9999
if (self::$lastError) {
100-
throw new IOException(sprintf('Failed to create "%s": '.self::$lastError, $dir), 0, null, $dir);
100+
throw new IOException(sprintf('Failed to create "%s": ', $dir).self::$lastError, 0, null, $dir);
101101
}
102102
throw new IOException(sprintf('Failed to create "%s".', $dir), 0, null, $dir);
103103
}
@@ -167,16 +167,16 @@ public function remove($files)
167167
if (is_link($file)) {
168168
// See https://bugs.php.net/52176
169169
if (!(self::box('unlink', $file) || '\\' !== \DIRECTORY_SEPARATOR || self::box('rmdir', $file)) && file_exists($file)) {
170-
throw new IOException(sprintf('Failed to remove symlink "%s": '.self::$lastError, $file));
170+
throw new IOException(sprintf('Failed to remove symlink "%s": ', $file).self::$lastError);
171171
}
172172
} elseif (is_dir($file)) {
173173
$this->remove(new \FilesystemIterator($file, \FilesystemIterator::CURRENT_AS_PATHNAME | \FilesystemIterator::SKIP_DOTS));
174174

175175
if (!self::box('rmdir', $file) && file_exists($file)) {
176-
throw new IOException(sprintf('Failed to remove directory "%s": '.self::$lastError, $file));
176+
throw new IOException(sprintf('Failed to remove directory "%s": ', $file).self::$lastError);
177177
}
178178
} elseif (!self::box('unlink', $file) && file_exists($file)) {
179-
throw new IOException(sprintf('Failed to remove file "%s": '.self::$lastError, $file));
179+
throw new IOException(sprintf('Failed to remove file "%s": ', $file).self::$lastError);
180180
}
181181
}
182182
}

0 commit comments

Comments
 (0)