You can turn off error_reporting in php.ini, that way it is upgrade-safe. You can also turn off display_errors there.
This is a standard part of the installation, PHP throws many errors and they should be seen on the logs, not on user’s screens.
But please be warned that if you’re getting a lot of “undefined” words appearing on screen, in the place of labels and buttons, you probably need to set your Linux permissions correctly.