diff --git a/src/Control/Director.php b/src/Control/Director.php index ca26754d9..fe5c3e379 100644 --- a/src/Control/Director.php +++ b/src/Control/Director.php @@ -704,7 +704,9 @@ class Director implements TemplateGlobalProvider */ public static function publicDir() { - $alternate = self::config()->uninherited('alternate_public_dir'); + $alternate = Deprecation::withNoReplacement(function () { + return self::config()->uninherited('alternate_public_dir'); + }); if (isset($alternate)) { return $alternate; }