فهرست منبع

simplified extension check in classmap generation

Robert Schönthal 11 سال پیش
والد
کامیت
f75dda759d
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/Composer/Autoload/ClassMapGenerator.php

+ 2 - 1
src/Composer/Autoload/ClassMapGenerator.php

@@ -66,9 +66,10 @@ class ClassMapGenerator
         $map = array();
 
         foreach ($path as $file) {
+            /** @var \SplFileInfo $file */
             $filePath = $file->getRealPath();
 
-            if (!in_array(pathinfo($filePath, PATHINFO_EXTENSION), array('php', 'inc'))) {
+            if (!in_array($file->getExtension(), array('php', 'inc'))) {
                 continue;
             }