src/Dev/Deprecation.php
public static function get_enabled()
    {
        // Deprecation is only available on dev
        if (!Director::isDev()) {
            return false;
        }
        if (isset(self::$enabled)) {
            return self::$enabled;
        }
        return Environment::getEnv('SS_DEPRECATION_ENABLED') ?: true;
    }
public static function get_enabled()
    {
        // Deprecation is only available on dev
        if (!Director::isDev()) {
            return false;
        }
        if (isset(self::$enabled)) {
            return self::$enabled;
        }
        return Environment::getEnv('SS_DEPRECATION_ENABLED') ?: true;
    }
public static function get_enabled ( ) { // Deprecation is only available on dev if ( ! Director :: isDev ( ) ) { return false ; } if ( isset ( self :: $ enabled ) ) { return self :: $ enabled ; } return Environment :: getEnv ( 'SS_DEPRECATION_ENABLED' ) ? : true ; }
Determine if deprecation notices should be displayed

@return bool
Determine if deprecation notices should be displayed