From 39c9e5f98a7d641ef725bb4909a2de4dc618b230 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 15 Dec 2017 23:00:36 +0100 Subject: [PATCH] Normalize path in AutoloadGenerator::setExcludePaths Fix is for windows machine Change-Id: Iadedeb6a04df439c0e940b8eb62fa46757c571c3 --- includes/utils/AutoloadGenerator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/utils/AutoloadGenerator.php b/includes/utils/AutoloadGenerator.php index 1c7c9b0f0f..1415ea32b4 100644 --- a/includes/utils/AutoloadGenerator.php +++ b/includes/utils/AutoloadGenerator.php @@ -74,7 +74,9 @@ class AutoloadGenerator { * @param string[] $paths */ public function setExcludePaths( array $paths ) { - $this->excludePaths = $paths; + foreach ( $paths as $path ) { + $this->excludePaths[] = self::normalizePathSeparator( $path ); + } } /** -- 2.20.1