Ignore hidden addon folders

This commit is contained in:
Art4 2025-05-16 08:46:16 +00:00
parent 638496e553
commit 0078423b48
2 changed files with 6 additions and 1 deletions

View file

@ -82,7 +82,9 @@ final class AddonManagerHelper implements AddonHelper
$files = [];
foreach ($dirs as $dirname) {
if (in_array($dirname, ['.', '..'])) {
// ignore hidden files and folders
// @TODO: Replace with str_starts_with() when PHP 8.0 is the minimum version
if (\strncmp($dirname, '.', 1) === 0) {
continue;
}