-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Fixed in 2.1.xThe issue has been fixed in 2.1 release lineThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedbug report
Description
Hi,
Magento version: 2.0.6
I created a simple plugin: (class exists, but its contents does not interfere here).
<type name="\Magento\Email\Model\Template\Filter">
<plugin name="escapenl2br" type="Vendor\Module\Plugin\EscapeNl2br" sortOrder="1"/>
</type>
But this results in a weird error message:
Warning: Declaration of Magento\Email\Model\Template\Filter\Interceptor::setTemplateProcessor($callback) should be compatible with Magento\Framework\Filter\Template::setTemplateProcessor(callable $callback) in /private/var/www/magento/var/generation/Magento/Email/Model/Template/Filter/Interceptor.php on line 7
Obviously, the code generated is wrong:
public function setTemplateProcessor($callback)
{
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'setTemplateProcessor');
if (!$pluginInfo) {
return parent::setTemplateProcessor($callback);
} else {
return $this->___callPlugins('setTemplateProcessor', func_get_args(), $pluginInfo);
}
}
Where I can dig into to fix this?
Thanks!
Metadata
Metadata
Assignees
Labels
Fixed in 2.1.xThe issue has been fixed in 2.1 release lineThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedGate 1 Failed. Automatic verification of issue format is failedbug report