-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed 'Undefined class constant' error when interceptor is generated. #28797
Fixed 'Undefined class constant' error when interceptor is generated. #28797
Conversation
Hi @vovayatsyuk. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
Hi @ihor-sviziev, thank you for the review. |
✔️ QA passed |
@magento run all tests |
@magento create issue |
@magento run WebAPI tests |
@magento run WebAPI Tests |
@magento run Integration Tests |
Hi @vovayatsyuk, thank you for your contribution! |
Description (*)
static
keyword, PHP will search it within class instance.Interceptor
without access to private variables of child classes.Manual testing scenarios (*)
Create a plugin for
Magento\Theme\Block\Html\Title
class:Open frontend.
You'll see an error:
Questions or comments
Another way to solve this bug - is to declare constant as public instead of private.
If you think it should be public - I'll update PR.
Contribution checklist (*)
Resolved issues: