Skip to content

Commit 6493785

Browse files
GrahamCampbellkattrali
authored andcommitted
Ensure the correct project root path is used (#31)
1 parent 45017e8 commit 6493785

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

DependencyInjection/ClientFactory.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ protected function setupPaths($client, $strip, $project, $root)
249249

250250
if ($base) {
251251
$client->setStripPath($base);
252-
$client->setProjectRoot("{$base}/src");
252+
253+
if ($root = realpath("{$base}/src")) {
254+
$client->setProjectRoot($root);
255+
}
253256
}
254257
}
255258
}

0 commit comments

Comments
 (0)