reverted simplification cause of php < 5.3.6
parent
f75dda759d
commit
860483e97e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue