Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #987 Fixing problem where rootDir is ".", which strips all dots f…
…rom the filename (weaverryan) This PR was merged into the 1.x branch. Discussion ---------- Fixing problem where rootDir is ".", which strips all dots from the filename Fixes symfony/recipes#1120 In a normal siutation, `$rootDir` is `.`. The intention of this code is to strip the "rootDir" from the START of the `$file` path, so that we are left with only the relative path. The `.` + `str_replace()` was too greedy, and was causing things like `docker-composeryaml`. The test uses an absolute root dir, and replicating the `.` would be tricky. But I tested this locally and the fix works. Cheers! Commits ------- 55d088e Fixinb problem where rootDir is ".", which strips all dots from the filename
- Loading branch information