diff --git a/src/Utils/Project.php b/src/Utils/Project.php index ff85a49..8a4bc50 100644 --- a/src/Utils/Project.php +++ b/src/Utils/Project.php @@ -145,9 +145,9 @@ public static function getAvailableDbRegions() protected function getRelativeDir($dir) { - return $dir && $dir[0] === DIRECTORY_SEPARATOR - ? $dir - : $this->dir . DIRECTORY_SEPARATOR . $dir; + return $this->isRelativePath($dir) + ? $this->dir . DIRECTORY_SEPARATOR . $dir + : $dir; } private function isRelativePath($path)