We can show all errors and warning in php with ini_set.
Write this two lines
error_reporting(E_ALL); ini_set('display_errors', '1');
In index.php or php.ini or main file of your project. main entry point in project will be like index.php, config.php, wp-config.php, connection.php etc. depend on project structure.