Skip to content

Commit b27f491

Browse files
Merge branch '3.4' into 4.4
* 3.4: Fixes sprintf(): Too few arguments in form transformer [Console] Fix QuestionHelper::disableStty() validate subforms in all validation groups Update Hungarian translations Add meaningful message when Process is not installed (ProcessHelper) [PropertyAccess] Fix TypeError parsing again. [Form] add missing Czech validators translation [Validator] add missing Czech translations never directly validate Existence (Required/Optional) constraints
2 parents 31f0a36 + 0f625d0 commit b27f491

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: Filesystem.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function mkdir($dirs, $mode = 0777)
102102
if (!is_dir($dir)) {
103103
// The directory was not created by a concurrent process. Let's throw an exception with a developer friendly error message if we have one
104104
if (self::$lastError) {
105-
throw new IOException(sprintf('Failed to create "%s": '.self::$lastError, $dir), 0, null, $dir);
105+
throw new IOException(sprintf('Failed to create "%s": ', $dir).self::$lastError, 0, null, $dir);
106106
}
107107
throw new IOException(sprintf('Failed to create "%s".', $dir), 0, null, $dir);
108108
}
@@ -172,16 +172,16 @@ public function remove($files)
172172
if (is_link($file)) {
173173
// See https://bugs.php.net/52176
174174
if (!(self::box('unlink', $file) || '\\' !== \DIRECTORY_SEPARATOR || self::box('rmdir', $file)) && file_exists($file)) {
175-
throw new IOException(sprintf('Failed to remove symlink "%s": '.self::$lastError, $file));
175+
throw new IOException(sprintf('Failed to remove symlink "%s": ', $file).self::$lastError);
176176
}
177177
} elseif (is_dir($file)) {
178178
$this->remove(new \FilesystemIterator($file, \FilesystemIterator::CURRENT_AS_PATHNAME | \FilesystemIterator::SKIP_DOTS));
179179

180180
if (!self::box('rmdir', $file) && file_exists($file)) {
181-
throw new IOException(sprintf('Failed to remove directory "%s": '.self::$lastError, $file));
181+
throw new IOException(sprintf('Failed to remove directory "%s": ', $file).self::$lastError);
182182
}
183183
} elseif (!self::box('unlink', $file) && file_exists($file)) {
184-
throw new IOException(sprintf('Failed to remove file "%s": '.self::$lastError, $file));
184+
throw new IOException(sprintf('Failed to remove file "%s": ', $file).self::$lastError);
185185
}
186186
}
187187
}

0 commit comments

Comments
 (0)