From 217fcbe3778ebb211e2875fcdffdca05fa862ca4 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 21 Feb 2020 22:14:15 +0300 Subject: [PATCH] Fix building config with custom dir under Windows --- src/configs/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configs/Config.php b/src/configs/Config.php index b409a57..77ba1cb 100644 --- a/src/configs/Config.php +++ b/src/configs/Config.php @@ -197,10 +197,10 @@ private function withParams(): bool private function findDepth() { - $outDir = dirname($this->getOutputPath()); + $outDir = dirname(self::normalizePath($this->getOutputPath())); $diff = substr($outDir, strlen($this->getBaseDir())); - return substr_count($diff, DIRECTORY_SEPARATOR); + return substr_count($diff, '/'); } /**