Normalize path in AutoloadGenerator::setExcludePaths
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 15 Dec 2017 22:00:36 +0000 (23:00 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 15 Dec 2017 22:16:01 +0000 (22:16 +0000)
Fix is for windows machine

Change-Id: Iadedeb6a04df439c0e940b8eb62fa46757c571c3

includes/utils/AutoloadGenerator.php

index 1c7c9b0..1415ea3 100644 (file)
@@ -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 );
+               }
        }
 
        /**