We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7d1595 commit 42e3866Copy full SHA for 42e3866
app/code/Magento/User/Model/UserValidationRules.php
@@ -53,7 +53,9 @@ public function __construct(?ScopeConfigInterface $scopeConfig = null)
53
*/
54
private function getMinimumPasswordLength(): int
55
{
56
- $configValue = $this->scopeConfig->getValue(self::XML_PATH_MINIMUM_PASSWORD_LENGTH);
+ $configValue = $this->scopeConfig ?
57
+ $this->scopeConfig->getValue(self::XML_PATH_MINIMUM_PASSWORD_LENGTH) : null;
58
+
59
return $configValue ? (int) $configValue : self::MIN_PASSWORD_LENGTH;
60
}
61
0 commit comments