1
0
Fork 0

simplified extension check in classmap generation

pull/2052/head
Robert Schönthal 2013-07-09 15:33:04 +02:00
parent 963f189fb2
commit f75dda759d
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}