Skip to content

Commit 00956af

Browse files
committed
ACP2E-3501: VAPT: Business Logic Error - future date as customer date of birth
1 parent 878f331 commit 00956af

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Customer/Model/Validator

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Validator/Dob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(StoreManagerInterface $storeManager)
4141
* @param Customer $customer
4242
* @return bool
4343
*/
44-
public function isValid($customer): bool
44+
public function isValid($customer)
4545
{
4646
if (!$this->isValidDob($customer->getDob(), $customer->getStoreId())) {
4747
parent::_addMessages([['dob' => 'The Date of Birth should not be greater than today.']]);

0 commit comments

Comments
 (0)