On Windows, I was running into an issue where the rel_path function can't correctly calculate the relative path due to differences in directory separators. The composer.json file uses unix separators (/), which Windows can understand just fine, but PHP uses the windows separator (\). This patch simply makes sure that whatever value we've gotten from the composer.json file, it's using the same separators that PHP itself is using.
On Windows, I was running into an issue where the
rel_path
function can't correctly calculate the relative path due to differences in directory separators. The composer.json file uses unix separators (/
), which Windows can understand just fine, but PHP uses the windows separator (\
). This patch simply makes sure that whatever value we've gotten from the composer.json file, it's using the same separators that PHP itself is using.