Skip to content

[BUGFIX] Handle submodule includes#12

Merged
bmack merged 1 commit intob13:mainfrom
calien666:bugfix/submodule-registering
Aug 7, 2024
Merged

[BUGFIX] Handle submodule includes#12
bmack merged 1 commit intob13:mainfrom
calien666:bugfix/submodule-registering

Conversation

@calien666
Copy link
Contributor

While registering a module like defined in README, the variable $allowedModule is set to true in submodules. This leads to a TypeError while array_merge().

To avoid this, a check is added if the referring submodule is loaded and then appends the submodule to the current $finalModules list.

As $moduleName could be assigned to the main module name, the assignment at the beginning of the foreach was removed.

Fixes #11

While registering a module like defined in README, the variable
`$allowedModule` is set to true in submodules. This leads to a TypeError
while array_merge().

To avoid this, a check is added if the referring submodule is loaded and
then appends the submodule to the current `$finalModules` list.

As `$moduleName` could be assigned to the main module name, the
assignment at the beginning of the foreach was removed.
@calien666 calien666 force-pushed the bugfix/submodule-registering branch from 7260c42 to f567eea Compare July 19, 2024 14:12
@bmack bmack merged commit a180a7a into b13:main Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Defining module acces per submodule throws TypeError

2 participants

Comments