Skip to content

Commit 62a42eb

Browse files
authored
ENGCOM-5159: Change the "main" function in NonComposerComponentRegistration.php to closure to avoid naming conflicts. #21831
2 parents 3ac5cdf + 9f22586 commit 62a42eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/etc/NonComposerComponentRegistration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @throws RuntimeException
1616
* @return void
1717
*/
18-
function main()
18+
$main = function ()
1919
{
2020
$globPatterns = require __DIR__ . '/registration_globlist.php';
2121
$baseDir = dirname(dirname(__DIR__)) . '/';
@@ -28,6 +28,6 @@ function main()
2828
}
2929
array_map(function ($file) { require_once $file; }, $files);
3030
}
31-
}
31+
};
3232

33-
main();
33+
$main();

0 commit comments

Comments
 (0)