FIX Wrap deprecated config with no replacement (#10704)

This commit is contained in:
Guy Sartorelli 2023-02-27 18:13:31 +13:00 committed by GitHub
parent 652281507f
commit 6669d54f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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