If you do not want PHP errors to be displayed on your website, all you need to do is open Hosting → Manage → PHP configuration:
Once there, open the PHP options page and remove a checkmark from displayErrors (display_errors) parameter. If you do not want errors to be logged as well, remove a checkmark from logErrors (log_errors) as well:

Make sure to save changes before leaving the page 😊
If the mentioned parameters were not chosen or errors keep displaying even while after disabling, check additional options of disabling errors.
NOTE: