Merge pull request #11110 from creative-commoners/pulls/5/deprecate-unused-methods

API Deprecate some unused API
This commit is contained in:
Guy Sartorelli 2024-01-17 14:13:25 +13:00 committed by GitHub
commit 583b762217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4016,19 +4016,26 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
/* /*
* @ignore * @ignore
* @deprecated 5.2.0 Will be removed without equivalent functionality
*/ */
private static $subclass_access = true; private static $subclass_access = true;
/** /**
* Temporarily disable subclass access in data object qeur * Temporarily disable subclass access in data object qeur
* @deprecated 5.2.0 Will be removed without equivalent functionality
*/ */
public static function disable_subclass_access() public static function disable_subclass_access()
{ {
Deprecation::notice('5.2.0', 'Will be removed without equivalent functionality');
self::$subclass_access = false; self::$subclass_access = false;
} }
/**
* @deprecated 5.2.0 Will be removed without equivalent functionality
*/
public static function enable_subclass_access() public static function enable_subclass_access()
{ {
Deprecation::notice('5.2.0', 'Will be removed without equivalent functionality');
self::$subclass_access = true; self::$subclass_access = true;
} }