File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Customer/Plugin Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,17 @@ public function __construct(
39
39
}
40
40
41
41
/**
42
+ * Enforce DOB min/max from attribute validate_rules on every save.
43
+ *
42
44
* @param CustomerRepositoryInterface $subject
43
45
* @param callable $proceed
44
46
* @param CustomerInterface $customer
45
- * @param $passwordHash
47
+ * @param string|null $passwordHash
46
48
* @return mixed
47
49
* @throws InputException
48
50
* @throws \Magento\Framework\Exception\LocalizedException
49
51
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
52
+ * @SuppressWarnings(PHPMD.NPathComplexity)
50
53
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
51
54
*/
52
55
public function aroundSave (
@@ -102,6 +105,7 @@ public function aroundSave(
102
105
* @param mixed $value
103
106
* @return \DateTimeImmutable|null
104
107
* @throws \Exception
108
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
105
109
*/
106
110
private function parseDate ($ value ): ?\DateTimeImmutable
107
111
{
You can’t perform that action at this time.
0 commit comments