Normalize path in AutoloadGenerator::setExcludePaths
[lhc/web/wiklou.git] / 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 );
+               }
        }
 
        /**