This is a general inquiry.
I just had a quick look at https://phabricator.wikimedia.org/T104951 where DynamicSideba/extension.json is defined in part of:
},
"ExtensionFunctions": [
"DynamicSidebar::setup"
],[0] doesn't suggest to make an array_merge_recursive on $GLOBALS['wgExtensionFunctions'] with other extensions using $GLOBALS['wgExtensionFunctions'] as well and being ultimately executed in [1].