I'm installing Magento and after i run the command php bin/magento setup:di:compile in cmd it gives me this error message "Warning: Use of undefined constant ‘ - assumed '‘' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\magento\vendor\magento\framework\Interception\PluginListGenerator.php on line 159" which refers to this line
$cacheId = implode(‘-’, $this->scopePriorityScheme) . “-” . $this->cacheId;
what can i do to solve this ? please this is urgent
Hope you are doing well,
Check out this solution https://support.magento.com/hc/en-us/articles/115002663433-Error-running-the-setup-di-compile-comman.... I think this will help you in solving your problem.
Hit the Kudos button and accept as a solution.
Replace the line-
$cacheId = implode('|', $this->scopePriorityScheme) . "|" . $this->cacheId;
with the code-
$cacheId = implode('-', $this->scopePriorityScheme) . "-" . $this->cacheId;
maybe you have a variable $s and omitted the $, or you forgot the quotation marks?