Make the noise visible.
Enable all errors and log them in your test and development environments. Keep error display off in production. Exercise web requests, queues, scheduled commands and seldom-used integrations.
error_reporting(E_ALL);
ini_set('log_errors', '1');
ini_set('display_errors', '0');PHP error configuration ↗