Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  [Filesystem] Fix Filesystem::remove() on Windows
  [DoctrineBridge] Fix compat with DI >= 6.4
  [String] Fix *String::snake methods
  • Loading branch information
nicolas-grekas committed Jun 28, 2024
2 parents 4d37529 + 6a03d7f commit 748ccd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private static function doRemove(array $files, bool $isRecursive): void
}
} elseif (is_dir($file)) {
if (!$isRecursive) {
$tmpName = \dirname(realpath($file)).'/.'.strrev(strtr(base64_encode(random_bytes(2)), '/=', '-_'));
$tmpName = \dirname(realpath($file)).'/.!'.strrev(strtr(base64_encode(random_bytes(2)), '/=', '-!'));

if (file_exists($tmpName)) {
try {
Expand Down

0 comments on commit 748ccd8

Please sign in to comment.