How to resolve syntax error, unexpected [ in guzzle?
问题 I am trying to using guzzle to pass the referer as mentioned by one of the stackoverflow user on one of my question asked here: related stackoverflow question unresolved require_once("../plugins/Guzzle/vendor/autoload.php"); //use GuzzleHttp\Client; $headers = ['Referer' => 'https://mywebsite.com']; $httpClient = new Client([ 'headers' => $headers ]); but above through the error: syntax error, unexpected '[' and nothing works.:( So can anyone please help me to find my mistake or what I am