Disabling error reporting

It’s a mistake to disable error reporting. You should keep the error reporting. Don’t show it to the user but log it to a file, which you can then view. This can be done easily via the php.ini file:

display_errors: off
log_errors: on
error_log: logs/errors.log

https://afilina.com/common-php-mistakes