Expand my Community achievements bar.

How to fix the errors of uct report when upgrate from 2.4.5-p8 to 2.4.7

Avatar

Level 2

1. how to update code like above?

guoliangwa_0-1741585435816.pngguoliangwa_1-1741585469009.png

 i had checked the related code, this class of Magento\SalesRule\Model\ResourceModel\Coupon\Usage is the same code in 2.4.5 and 2.4.7. why does the report occur this error? Update code to use a class marked as @api, how to find the solution of alternative code?  the offical doc show a list of alternative code?  i did not find those doc.  from google, I see someone said 1124 msg code related error in report do not care because the report have false positive issue.

 

2. how to fix the type of error(critical level)

 

guoliangwa_2-1741586155501.pngguoliangwa_3-1741586179348.png

    i had checked the related code in different magento version,  it is the same code in 2.4.5 and 2.4.7,  this method of Magento\Customer\Model\Session\Proxy::isLoggedIn exsit in the two magento version.  the class do not change, i had check the magento release notes.  why does uct report show me this msg? bug or false positive msg?  

 

 

Hi, everyone,  thanks everyone to help me!!!!

4 Replies

Avatar

Level 2

sometimes magento uct report msg is a false positive? how to confirm?

Avatar

Level 6

The Magento\SalesRule\Model\ResourceModel\Coupon\Usage class is flagged because it is not marked as @api, meaning it is not part of the stable public API and may change in future versions. 

Review the Magento DevDocs for deprecated classes in your target version. If the class is deprecated, use the @api alternative provided in the deprecation notice.

Avatar

Level 2

Thanks for your replay, giuseppebag.

Before i already had review the Magento DevDocs, but i can not find the solution. For example, like those causual three issues in my uct report:

1. Magento\SalesRule\Model\ResourceModel\Coupon\Usage

2. Call method 'Magento\Framework\DB\Adapter\AdapterInterface::rollback' that does not exist on version '2.4.7'

3. Call method 'Magento\Framework\DataObject::canConfigure' that does not exist on version '2.4.7'

 

I am not able to find the alternative solution in Magento DevDocs, the docs donot contain the above issues. i do not if i explain clearly.  Look forward to your reply again.  

 

Avatar

Level 2