Skip to content

Using class CORE_CLASS that is non API on version ‘2.4.6-p1’

I have generated the Upgrade Compatibility Tool Report and most of the errors are as below.

[ERROR] [1124] Line 30: Using class ‘MagentoCustomerModelAddressConfig’ that is non API on version ‘2.4.6-p1’

[ERROR] [1124] Line 56: Using class
‘MagentoCustomerModelAddressConfig’ that is non API on version
‘2.4.6-p1’

[ERROR] [1124] Line 56: Using class
‘MagentoFrameworkFilterDataObjectGrid’ that is non API on version
‘2.4.6-p1’

[ERROR] [1124] Line 56: Using class
‘MagentoCustomerModelAddressMapper’ that is non API on version
‘2.4.6-p1’

[ERROR] [1124] Line 100: Using class
‘MagentoCustomerModelAddressConfig’ that is non API on version
‘2.4.6-p1’

[ERROR] [1224] Line 100: Using constant
‘MagentoCustomerModelAddressConfig::DEFAULT_ADDRESS_FORMAT’ that
is non API on version ‘2.4.6-p1’

[ERROR] [1429] Line 100: Call method
‘MagentoCustomerModelAddressConfig::getFormatByCode’ that is non
API on version ‘2.4.6-p1’

[ERROR] [1429] Line 100: Call method
‘MagentoCustomerModelAddressMapper::toFlatArray’ that is non API
on version ‘2.4.6-p1’

I’m not able to find the alternative solution for above issues, even if I use @api in DocBlock, it’s not helpful.

Please advice.