This commit is contained in:
nuno maduro
2026-05-04 08:02:09 -03:00
parent b828ddcec7
commit d17be9decd
5 changed files with 7 additions and 7 deletions

View File

@ -253,17 +253,17 @@ final class WatchPatterns
private function patternTargetsDotfiles(string $pattern): bool
{
return array_any(explode('/', str_replace('\\', '/', $pattern)), fn ($segment): bool => $segment !== '' && $segment[0] === '.');
return array_any(explode('/', str_replace('\\', '/', $pattern)), fn (string $segment): bool => $segment !== '' && $segment[0] === '.');
}
private function touchesVcs(string $file): bool
{
return array_any(explode('/', $file), fn ($segment): bool => in_array($segment, self::VCS_DIRS, true));
return array_any(explode('/', $file), fn (string $segment): bool => in_array($segment, self::VCS_DIRS, true));
}
private function touchesDotfile(string $file): bool
{
return array_any(explode('/', $file), fn ($segment): bool => $segment !== '' && $segment[0] === '.');
return array_any(explode('/', $file), fn (string $segment): bool => $segment !== '' && $segment[0] === '.');
}
private function excludeMatches(string $exclude, string $file): bool