Commit 039bb47
committed
bug #987 Fixing problem where rootDir is ".", which strips all dots from 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 filename1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
336 | 340 | | |
337 | 341 | | |
338 | 342 | | |
| |||
0 commit comments