From d0897b3602fc40478171b445191daf4fec27e97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 24 Aug 2021 19:29:53 +0200 Subject: [PATCH] Clean up function map production slightly There's no need to iterate over $fileInfos again while generating the class map --- build/gen_stub.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 040a037677b..213e88d3cfd 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -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; }