Title: Parse error, syntax error, unexpected &#039;[&#039;
Last modified: August 21, 2016

---

# Parse error, syntax error, unexpected '['

 *  [tiagoduarte](https://wordpress.org/support/users/tiagoduarte/)
 * (@tiagoduarte)
 * [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-75/)
 * Hi.
    I am using WordPress 3.5.1 and I have a plugin with Google Client API. I
   have a line of code that works pretty much everywhere (other setups), except 
   this particular environment.
 * $current_file->getExportLinks()[‘application/pdf’];
 * Reference: [https://developers.google.com/drive/manage-downloads](https://developers.google.com/drive/manage-downloads)
 * Error:
    Parse error, syntax error, unexpected ‘[‘ in my_file.php on line 123
 * I am almost sure that this has nothing to do with Google: it works on other machines,
   and it is a “parse error” not some runtime issue. even wrapping a try catch block
   won’t help.
 * Any ideas anyone?

The topic ‘Parse error, syntax error, unexpected '['’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [tiagoduarte](https://wordpress.org/support/users/tiagoduarte/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-75/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
