Skip to content

Commit f129c6c

Browse files
authored
testsuite fixes (#359)
1 parent ab4bd7d commit f129c6c

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [3.x, 4.x, 5.x]
5+
branches: [3.x, 4.x, 5.x, 6.x]
66
pull_request:
77
branches: ['*']
88
workflow_dispatch:

src/Command/FileRenameCommand.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use RecursiveRegexIterator;
2828
use RegexIterator;
2929
use RuntimeException;
30+
use UnexpectedValueException;
3031

3132
/**
3233
* Rename and move files
@@ -207,11 +208,15 @@ protected function renameSubFolders(string $path): void
207208
RecursiveRegexIterator::SPLIT,
208209
);
209210

210-
foreach ($templateDirs as $val) {
211-
$this->renameWithCasing(
212-
$val[0] . '/' . $folder,
213-
$val[0] . '/' . strtolower($folder),
214-
);
211+
try {
212+
foreach ($templateDirs as $val) {
213+
$this->renameWithCasing(
214+
$val[0] . '/' . $folder,
215+
$val[0] . '/' . strtolower($folder),
216+
);
217+
}
218+
} catch (UnexpectedValueException) {
219+
// No matching folders found
215220
}
216221
}
217222
}

0 commit comments

Comments
 (0)