Skip to content

Fix glob pattern for source paths containing a dot - #4131

Open
lacatoire wants to merge 2 commits into
phpDocumentor:masterfrom
lacatoire:fix/glob-dot-in-folder-name
Open

Fix glob pattern for source paths containing a dot#4131
lacatoire wants to merge 2 commits into
phpDocumentor:masterfrom
lacatoire:fix/glob-dot-in-folder-name

Conversation

@lacatoire

Copy link
Copy Markdown
Contributor

Paths containing a dot (e.g. test.1) were treated as a single file and never expanded to /path/**/*, so phpDocumentor reported an empty documentation set when run with -d test.1.

The heuristic is dropped: each path emits both /path and /path/**/*, so file paths still match exactly and directory paths recurse regardless of dots in their names.

Fixes #3940

lacatoire added 2 commits May 17, 2026 17:26
When a source path contains a dot (e.g. test.1), it was assumed to be a
single file and the /**/* suffix was not appended, so phpDocumentor
never descended into the directory and reported an empty documentation
set.

The heuristic is dropped: each path now emits both /path and /path/**/*
so that file paths still match exactly and directory paths still recurse.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

phpDocumentor does not understand the dot character in the folder name.

1 participant