spiral / framework

High-Performance PHP Framework
https://spiral.dev
MIT License
1.8k stars 87 forks source link

Disable error reporting by default #1088

Open Lisio opened 7 months ago

Lisio commented 7 months ago

Currently, removing ErrorHandlerMiddleware from app enables displaying of exceptions with full traces even if DEBUG is set to false, error_reporting is set to 0 and display_errors is set to Off. Debug information of any kind must be hidden by default and middleware shouldn't expose it when not asked for.