Object::add_extension siteconfig

in the document of version 3 we use this code for add objet to siteConfig:
Object::add_extension('SiteConfig', 'MySiteConfig');

https://docs.silverstripe.org/en/3.0/reference/siteconfig/

im using this for 3 years but today im updating to latest version and im see this error:
Fatal error : Uncaught Error: Class ‘Object’ not found in
how can i fix this?

Hi Mohammad, in SS3.7+ if you’re using PHP 7.2+ you need to replace any uses of Object with SS_Object. See https://docs.silverstripe.org/en/3/changelogs/3.7.0/