I've declared this JS function and PhpStorm is highlighting it as an error, saying that ,or) expected
.
function getData(params, toCache=true) { ...
Why is PhpStorm highlighting toCache=true
as an error? Is this not the correct way to declare default params in JavaScript? My code is working, so is this just a bug in PhpStorm.