From bde089afd35b41928c8432f25df402565952125c Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Sun, 16 Jul 2023 10:52:44 -0400 Subject: [PATCH] Attempt fix for issue that could cause one autoload module requiring another to load in incorrect order under certain cases --- wire/core/ModulesInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/ModulesInfo.php b/wire/core/ModulesInfo.php index 80f25bed..5f019112 100644 --- a/wire/core/ModulesInfo.php +++ b/wire/core/ModulesInfo.php @@ -787,7 +787,7 @@ class ModulesInfo extends ModulesClass { case 'namespace': return $this->getModuleNamespace($class); case 'requires': - $v = $this->moduleInfoCache($class, 'requires'); + $v = $this->moduleInfoCache($class, 'requiresVersions'); // must be 'requiredVersions' here if(empty($v)) return array(); // early exit when known not to exist break; // fallback to calling getModuleInfo }