Explorar o código

reverted simplification cause of php < 5.3.6

Robert Schönthal %!s(int64=11) %!d(string=hai) anos
pai
achega
860483e97e
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/Composer/Autoload/ClassMapGenerator.php

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

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