Title: Parse error: syntax error, unexpected &#8216;:&#8217;, expecting &#8216;{&#8216;
Last modified: June 10, 2025

---

# Parse error: syntax error, unexpected ‘:’, expecting ‘{‘

 *  [DragonApps](https://wordpress.org/support/users/zothecula/)
 * (@zothecula)
 * [12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-expecting-10/)
 * I redid my vps and reuploaded my site and db and now I am getting this error 
   sand wasn’t before I redid the vps:
 * **Parse error**: syntax error, unexpected ‘:’, expecting ‘{‘ in **/home/dragocom/
   public_html/wp-includes/compat.php** on line **498**
 * Line 498 consists of the following:
 * function array_any( array $array, callable $callback ): bool { // phpcs:ignore
   Universal.NamingConventions.NoReservedKeywordParameterNames.arrayFound
 * Any help please and thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-syntax-error-unexpected-expecting-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-expecting-10/#post-18505038)
 * I would recommend that you re-upload the WordPress core files. Something may 
   have been saved incompletely on the server. See: [https://wordpress.org/documentation/article/updating-wordpress/#manual-update](https://wordpress.org/documentation/article/updating-wordpress/#manual-update)
 *  [gazpa](https://wordpress.org/support/users/gazpa/)
 * (@gazpa)
 * [11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-expecting-10/#post-18550618)
 * You should update your PHP version (at least 8.3)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parse error: syntax error, unexpected ‘:’, expecting ‘{‘’ is closed to
new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [gazpa](https://wordpress.org/support/users/gazpa/)
 * Last activity: [11 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-expecting-10/#post-18550618)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
