Naming functions within Craft CMS plugins
I have a currency switcher plugin which had a variable called 'switch'. It's been working fine previously in development and works fine in production but I'm finding locally it produces the following PHP error:
PHP Parse error: syntax error, unexpected 'switch' (T_SWITCH), expecting identifier (T_STRING)
Just renaming the variable fixed it. Here's the plugin if you're interested: https://github.com/cliveportma...