Download the appropriate Magento PHP 7.2 compatibility patch from https://magento.com/tech-resources/download and copy it to the root directory of your Magento installation.

You may have noticed that the patch filename differs slightly from the usual security patch names. There is no need to worry: you can still install it using the normal patch command.

Once the patch is on your server, install it with the following command:

If the command finishes without errors, the official Magento PHP 7.2 compatibility patch has been installed successfully.

Installing the PHP 7.2 support patch
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: