How to fix this error message: syntax error, unexpected '['
<p>There is this strange error when trying to login to admin page.</p>

<p>Try it:  <a href="http://www.masterlink.co.id/admin/" rel="nofollow noreferrer">http://www.masterlink.co.id/admin/</a></p>

<p>Parse error: syntax error, unexpected '[' in /home/masterli/public_html/application/admin/models/Mpages.php on line 531
A PHP Error was encountered</p>

<p>Severity: Parsing Error</p>

<p>Message: syntax error, unexpected '['</p>

<p>Filename: models/Mpages.php</p>

<p>Line Number: 531</p>

<p>Backtrace:</p>

<p>Line 531:</p>

<p>public function update_user()
    {</p>

<pre><code>    $options = [
      'roles' =&gt; 'administrator',
    ];

    $hash = password_hash($this-&gt;input-&gt;post('password'), PASSWORD_BCRYPT, $options);

    $data = array(
        'username' =&gt; $this-&gt;input-&gt;post('username'),
        'email' =&gt; $this-&gt;input-&gt;post('email'),
        'password' =&gt; $hash,
        'role' =&gt; $this-&gt;input-&gt;post('roles')       
    );      

    return $this-&gt;db-&gt;update('login', $data);

}   
</code></pre>

<p>Line 531:  $options = [</p>

<p>How to fix the error message?</p>