cancel
Showing results for 
Search instead for 
Did you mean: 

how to use laminas-validator in place of Zend_Validate in Magento 2.4.6

how to use laminas-validator in place of Zend_Validate in Magento 2.4.6

Hello,

After magento 2.4.6 upgrade one of custom module give Zend_Validate deprecated error , so please help me to laminas-validator to replace Zend_Validate

here is the code

if (!\Zend_Validate::is($recipientEmail, 'EmailAddress')) {
throw new LocalizedException(__('Please correct the email address: %1', $recipientEmail));
}

 

 

 

1 REPLY 1

Re: how to use laminas-validator in place of Zend_Validate in Magento 2.4.6