How to fix "silent error handling" of PDO errors after upgrading to PHP 8

from blog Prahlad Yeri, | ↗ original
PHP 8.x is filled with hidden land mines which can suddenly trip the unaware PHP coder, especially when porting from legacy frameworks like CodeIgniter or CakePHP to PHP 8.x systems. One such issue is PDO’s default exception handling method. Prior to PHP 8, PDO’s default exception handling mode was PDO::ERRMODE_SILENT which means our apps...