From 860483e97e0966823c1461876d72874d1ef4b061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=B6nthal?= Date: Tue, 9 Jul 2013 15:53:27 +0200 Subject: [PATCH] reverted simplification cause of php < 5.3.6 --- src/Composer/Autoload/ClassMapGenerator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/Autoload/ClassMapGenerator.php b/src/Composer/Autoload/ClassMapGenerator.php index 880bef2a8..e408eea75 100644 --- a/src/Composer/Autoload/ClassMapGenerator.php +++ b/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; }