PluginListGenerator.php in Magento 2.4.2 during compilation

To fix above error, kindly follow the below steps

Open PluginListGenerator.php file located at vendor/magento/framework/Interception.

Go to line no 414 or find the word “scopePriorityScheme” in PluginListGenerator.php file.

Replace the line

"$cacheId = implode('|', $this->scopePriorityScheme) . "|" . $this->cacheId;" 
with
"$cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;"

你可能感兴趣的:(magento2)