What if WP_ENVIRONMENT_TYPE is set to ‘production’ and WP_DEVELOPMENT_TYPE is set to ‘theme’? I would hope that the latter constant would simply be ignored.