Closed
Description
Preconditions
Magento 2.1.7 + PHP 7.0.22
Steps to reproduce
- Create the following structure:
class A {
public function doSomething(){
echo 'I do something! (original)';
}
}
class B extends class A {
public function parentDoSomething(){
parent::doSomething();
}
}
- Now create an around plugin for the class A
doSomething
method:
public function aroundDoSomething(\Namespace\A $subject, callable $proceed){
echo 'I do something else! (plugin)';
}
- Now execute
$classB->parentDoSomething();
Expected result
I do something else! (plugin)
should be printed
Actual result
I do something! (original)
is printed
Other information
Calling $this->doSomething()
in class B does produce the correct result.
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedNo current plan to fix. Fixing can be deferred as a logical part of more important work.The issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 releaseAffects aesthetics, professional look and feel, “quality” or “usability”.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it