We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Error handler environments configuration [incubator/Library/Phalcon/Error/Handler.php]

Guys, dont you think that not all projects would have same env. variables ? I mean cmon, this stuff should be configurable to use it right out the box. It also won't help if I will override 'Application' class.

switch (APPLICATION_ENV) {
            case Application::ENV_PRODUCTION:
            case Application::ENV_STAGING:
            default:
                ini_set('display_errors', 0);
                error_reporting(0);
                break;
            case Application::ENV_TEST:
            case Application::ENV_DEVELOPMENT:
                ini_set('display_errors', 1);
                error_reporting(-1);
                break;
        }

Sigh, exactly my point.