Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit e8eea6c

Browse files
committed
Added check for when module init container is null
1 parent 8800f17 commit e8eea6c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/Module/ModularModuleTrait.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ protected function _setup()
6060
array_unshift($containers, $modulesContainer);
6161

6262
// Prepend the container that was used to initialize modules
63-
array_unshift($containers, $moduleInitContainer);
63+
if ($moduleInitContainer !== null) {
64+
array_unshift($containers, $moduleInitContainer);
65+
}
6466

6567
// Construct the master container and return
6668
return $this->_createCompositeContainer($containers);

0 commit comments

Comments
 (0)