Closed
Description
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
Steps to reproduce:
Case 1
Create a plugin for : Magento\Backend\ViewModel\ChartDisabled
class
Actual Result: ✖️ error occurs
Case 2
Create a plugin for : Magento\Catalog\Model\Config\LayerCategoryConfig
class
Actual Result: ✖️ error occurs
Case 3
Create a plugin for : Magento\DownloadableImportExport\Model\Import\Product\Type\Downloadable
class
Actual Result: ✖️ error occurs
Expected Result: ✔️ No errors when plugins are called
Related Issues
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.
Type
Projects
Status
Pull Request In Progress