Why does this PHP error_reporting hide the real exception?

Why does this PHP error_reporting hide the real exception in a catch. The PHP code sets error_reporting to 0 inside try. In PHP error handling this suppresses the actual error and hides root cause.

#whatswrongwiththisphpcode #phpbug #phpproductionbug #phpdebugging #phpbackend #phpcodereview #phpsecurity #phpperformance #phpreliability #phpapi #phpwebdevelopment #phpengineering #phperrorre...

https://www.youtube.com/watch?v=44LQV56ZrKg

Why does this PHP error_reporting hide the real exception? #phpproductionbug

YouTube