You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Load Addons hooks. If the addons require other addons loaded before it, then it will raise an exception
38
-
*
39
-
* @return $this
40
30
*/
41
31
publicfunctionload(): Core
42
32
{
@@ -47,7 +37,8 @@ public function load(): Core
47
37
$required[] = $addon;
48
38
}
49
39
}
50
-
if (!empty($required)) {
40
+
41
+
if ($required !== []) {
51
42
thrownewMissingRequiredAddonException('Following required addons not loaded: ' . implode(', ', $required) . '. You need to load it/them to use this addon');
52
43
}
53
44
@@ -66,16 +57,14 @@ private function manageHooks(string $op): void
0 commit comments