1. how to update code like above?
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)
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!!!!
Views
Replies
Total Likes
sometimes magento uct report msg is a false positive? how to confirm?
Views
Replies
Total Likes
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.
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.
Views
Replies
Total Likes
I had send a quesion in stackExchange. please reference
https://stackoverflow.com/questions/79508615/how-to-fix-issues-scaned-by-magento-uct-tool
Views
Replies
Total Likes
Views
Likes
Replies