From 6669d54f5928d22ee94e966747069b61aa06d14e Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Mon, 27 Feb 2023 18:13:31 +1300 Subject: [PATCH] FIX Wrap deprecated config with no replacement (#10704) --- src/Control/Director.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }