[Issue] Replace 'static::' with 'self::' when accessing private const. #30781
Labels
Component: Backend
Component: Catalog
Component: DownloadableImportExport
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: ready for confirmation
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: done
Progress: PR in progress
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Severity: S3
Affects non-critical data or functionality and does not force users to employ a workaround.
This issue is automatically created based on existing pull request: #30774: Replace 'static::' with 'self::' when accessing private const.
Description
Magento 2.4 -develop
This PR prevents 'Undefined class constant' error if a plugin will be added for one of these classes. Example:
Related Pull Requests
#28797
#29925
Steps to reproduce:
Case 1
Create a plugin for :
Magento\Backend\ViewModel\ChartDisabled
classActual Result: ✖️ error occurs
Case 2
Create a plugin for :
Magento\Catalog\Model\Config\LayerCategoryConfig
classActual Result: ✖️ error occurs
Case 3
Create a plugin for :
Magento\DownloadableImportExport\Model\Import\Product\Type\Downloadable
classActual Result: ✖️ error occurs
Expected Result: ✔️ No errors when plugins are called
Related Issues
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: