simplified extension check in classmap generation
parent
963f189fb2
commit
f75dda759d
|
@ -66,9 +66,10 @@ class ClassMapGenerator
|
||||||
$map = array();
|
$map = array();
|
||||||
|
|
||||||
foreach ($path as $file) {
|
foreach ($path as $file) {
|
||||||
|
/** @var \SplFileInfo $file */
|
||||||
$filePath = $file->getRealPath();
|
$filePath = $file->getRealPath();
|
||||||
|
|
||||||
if (!in_array(pathinfo($filePath, PATHINFO_EXTENSION), array('php', 'inc'))) {
|
if (!in_array($file->getExtension(), array('php', 'inc'))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue