Clean up function map production slightly

There's no need to iterate over $fileInfos again while generating the class map
This commit is contained in:
Máté Kocsis 2021-08-24 19:29:53 +02:00
parent f458b16041
commit d0897b3602
No known key found for this signature in database
GPG Key ID: FD055E41728BF310

View File

@ -3197,9 +3197,7 @@ foreach ($fileInfos as $fileInfo) {
$aliasMap[$funcInfo->alias->__toString()] = $funcInfo;
}
}
}
foreach ($fileInfos as $fileInfo) {
foreach ($fileInfo->classInfos as $classInfo) {
$classMap[$classInfo->name->__toString()] = $classInfo;
}