Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Usage of Deprecated class Zend\Validator\File\Exists to \Laminas\Validator\File\Exists in PaymentMethods.php #130

Open
obsergiu opened this issue Feb 7, 2024 · 2 comments · May be fixed by #131

Comments

@obsergiu
Copy link

obsergiu commented Feb 7, 2024

Hello,

The recent PR did not address the deprecated code issue in the file

vendor/sapient/module-worldpay/Model/Utilities/PaymentMethods.php. 

The error being reported is:

main.CRITICAL: Error: Class "Zend\Validator\File\Exists" not found in vendor/sapient/module-worldpay/Model/Utilities/PaymentMethods.php:173
As the Zend\Validator\File\Exists class is no longer available, we need to update the code accordingly. 

Need to swap the:

$validator = new \Zend\Validator\File\Exists();

With:

$validator = new \Laminas\Validator\File\Exists();

Tested in Magento2.4.6-p2.

@obsergiu
Copy link
Author

obsergiu commented Feb 7, 2024

This seems to be because the laminas/laminas-zendframework-bridge was deprecated from laminas/laminas-server:2.17 and there's no hard requirement in magneto to keep it down to laminas/laminas-server: 2.16

laminas/laminas-server#76

@elavarasann
Copy link
Collaborator

elavarasann commented Feb 14, 2024

Hi,
Thanks for highlighting this. We have made these changes & we will update these changes in next upcoming release.

@pykettk pykettk linked a pull request Feb 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants