Skip to content

Commit

Permalink
Merge branch '5.1' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 18, 2023
2 parents f22282a + 1ae7e92 commit cfd8f05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dev/Deprecation.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ protected static function get_called_method_from_trace($backtrace, $level = 1)

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;
}

Expand Down

0 comments on commit cfd8f05

Please sign in to comment.