v.1.1.5.1
fix(plugin): prevent undefined method error in MetaRobotsPlugin by adding instance check
Description:
- Added a check in
hasAppliedFilters()to ensure$resultPageis an instance ofMagento\Framework\View\Result\Pagebefore accessing layout methods. This resolves the critical error wheregetLayout()was called on incompatible result types likeForward. - Updated PHPDoc comments and code structure for better clarity and maintainability.
- Ensured compatibility with Magento 2.4.8 and PHP 8.3 standards.
Release Notes:
- Fixed bug causing fatal error on custom entity pages when controller result is a forward action (e.g., invalid routes or redirects).
- Improved plugin reliability without impacting performance.