You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
User include/exclude lists are index-merged with the defaults, not replaced #48
Config::get() merges the user's typephp.php over the defaults with array_replace_recursive() (src/Internal/Config.php:212), which merges lists by index. A
user config therefore cannot replace include/exclude; it only overwrites the first N entries.
tests/** then sits in both lists, and whether files under it are transformed comes down to PathMatcher::isPathIncluded()'s $longestIncludeMatch > $longestExcludeMatch tie-break on equal
glob lengths (8 > 8 is false). Lengthening either glob flips the behaviour.
Impact.include/exclude do not mean what the config file says. Excluding a directory can
depend on the character count of the pattern used.
Suggested fix. Replace include, exclude, extensions and stubs wholesale when the user
config declares them, rather than recursively merging the lists.
Activity
rcalicdan commentedon Aug 24, 2026
@FluffyDiscord Thank you for the issue already fix at #49, you can upgrade the library version to 0.6.2