Security: Refuse to start production with debug output 

Description 

The production environment now refuses to start with APP_DEBUG=1 or without an APP_SECRET and names the setting to change. Debug output shows stack traces, queries and configuration to anyone who triggers an error, and an empty secret makes signed links and tokens forgeable. APP_DEBUG is no longer set in .env and follows APP_ENV: 0 for prod, 1 otherwise. An unexpected error answers with the problem type, title, status and correlation ID only.

Impact 

Installations that set APP_ENV=prod and relied on the former APP_DEBUG=1 of .env now run without debug output. An installation with APP_DEBUG=1 or an empty APP_SECRET in production fails to start until the setting is fixed.