diff --git a/src/Dev/Deprecation.php b/src/Dev/Deprecation.php index 66c6d901b..4bc5b0aa9 100644 --- a/src/Dev/Deprecation.php +++ b/src/Dev/Deprecation.php @@ -159,13 +159,13 @@ class Deprecation public static function isEnabled(): bool { - if (!Director::isDev()) { - return false; - } if (Environment::hasEnv('SS_DEPRECATION_ENABLED')) { $envVar = Environment::getEnv('SS_DEPRECATION_ENABLED'); return self::varAsBoolean($envVar); } + if (!Director::isDev()) { + return false; + } return static::$currentlyEnabled; }